This library helps you generate images containing a QR code.
By ARCANEDEV©
If you have any suggestions or improvements feel free to create an issue or create a Pull Request.
- PHP >= 5.4.0
- GD extension
QrCode should be installed using composer. The general composer instructions can be found on the composer website.
After that, just declare the qr-code dependency as follows:
"require" : {
...
"arcanedev/qr-code": "dev-master"
}
Then, run composer.phar update
and you should be good.
<?php
include_once "vendor/autoload.php";
use Arcanedev\QrCode\QrCode;
$qrCode = new QrCode;
$qrCode->setText("I would love to change the world, but they won't give me the source code");
$qrCode->setSize(200);
echo $qrCode->image("image alt", ['class' => 'qr-code-img']);
Check the exemples folder to learn some tricks.
Coming Soon
The QR Code Library is open-sourced software licensed under the MIT license