PHP QRCode Library test
To install this library please follow the next steps:, (*1)
Install the library using composer
:
Add the required module to your composer.json
file:, (*2)
{
"require": {
...
"chailong/phpqrcode": "dev-master"
...
}
}
Then run the command composer update
., (*3)
Usage
Sample code:, (*4)
\PHPQRCode\QRcode::png("Test", "/tmp/qrcode.png", 'L', 4, 2);
\PHPQRCode\QRcode::jpg("Test", "/tmp/qrcode.png", 'L', 4, 2);
\PHPQRCode\QRcode::jpeg("Test", "/tmp/qrcode.png", 'L', 4, 2);