QR Code
, (*1)
Laravel package to providing a simple QR Code generator route, (*2)
, (*3)
Installation
Begin by installing this package through Composer. Edit your project's composer.json
file to require nathanmac/qr-code
., (*4)
"require": {
"Nathanmac/qr-code": "1.*"
}
Next, update Composer from the Terminal:, (*5)
composer update
Adding the Service Provider
If you are a Laravel user, then there is a service provider that you can make use of to automatically prepare the bindings and such., (*6)
Include the service provider within app/config/app.php
., (*7)
'providers' => [
'...',
'Nathanmac\Utilities\QRCode\QRCodeServiceProvider'
];
Usage
/qr-code/{size?}/{color?}/{background?}?text=Text+Contents
/qrcode/100/ffff00/ff0000/?text=Hello+World
, (*8)
/qrcode/100/03a/?text=Hello+World
, (*9)
Testing
To test the library itself, run the tests:, (*10)
composer test
Contributing
Please see CONTRIBUTING for details., (*11)
Credits
License
The MIT License (MIT). Please see License File for more information., (*12)