arcanedev / qr-code
QR Code generator
Installs: 29 538
Dependents: 1
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 3
Open Issues: 2
Requires
- php: >=5.4.0
- ext-gd: *
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-12-05 18:25:51 UTC
README
This library helps you generate images containing a QR code.
By ARCANEDEV©
Contributing
If you have any suggestions or improvements feel free to create an issue or create a Pull Request.
Requirements
- PHP >= 5.4.0
- GD extension
Installation
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.
USAGE
<?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.
Laravel Version
Coming Soon
License
The QR Code Library is open-sourced software licensed under the MIT license