Skip to content

Commit ef8b38f

Browse files
committed
Update ReadMe for composer
1 parent f3044bf commit ef8b38f

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,30 @@ This **QRCode PHP class** allows you to easily generate a simple **QR code** usi
99
Here also two video explanation of QR code: http://www.youtube.com/watch?v=B3lrcOhmp9g and http://www.youtube.com/watch?v=IphTJHiKGos
1010

1111

12+
## Composer Installation
13+
14+
You can add it easily in your projec by using [Composer](https://getcomposer.org/).
15+
16+
17+
```bash
18+
$ composer require ph-7/qrcode-generator-php-class
19+
```
20+
21+
Then, include Composer's autoload
22+
23+
```PHP
24+
require_once 'vendor/autoload.php';
25+
```
26+
27+
## Manual Installation
28+
29+
If you don't use Composer, you can install it without Composer by simply including the class
30+
31+
```PHP
32+
require 'QRCode.class.php';
33+
```
34+
35+
1236
## How to Use
1337

1438
Here's a basic example:

0 commit comments

Comments
 (0)