nathanmac / qr-code
Laravel package to providing a simple QR Code generator route
Installs: 2 612
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- endroid/qrcode: ^1.5
- illuminate/routing: ^5.0
- illuminate/support: ^5.0
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~4.0
- scrutinizer/ocular: ^1.1
This package is not auto-updated.
Last update: 2024-11-19 04:16:06 UTC
README
Laravel package to providing a simple QR Code generator route
Installation
Begin by installing this package through Composer. Edit your project's composer.json
file to require nathanmac/qr-code
.
"require": {
"Nathanmac/qr-code": "1.*"
}
Next, update Composer from the Terminal:
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.
Include the service provider within app/config/app.php
.
'providers' => [ '...', 'Nathanmac\Utilities\QRCode\QRCodeServiceProvider' ];
Usage
/qr-code/{size?}/{color?}/{background?}?text=Text+Contents
/qrcode/100/ffff00/ff0000/?text=Hello+World
/qrcode/100/03a/?text=Hello+World
Testing
To test the library itself, run the tests:
composer test
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.