yeejiawei / laravel-qrcode
Laravel Wrapper for phpqrcode
0.1.0
2023-02-16 13:44 UTC
Requires
- illuminate/support: ^9.19
This package is auto-updated.
Last update: 2024-11-16 17:43:12 UTC
README
Installation
You can install the package via composer:
composer require yeejiawei/laravel-qrcode
Usage
use \Yeejiawei\LaravelQrcode\LaravelQrcode; $qr = LaravelQrcode::create('test'); $qr->setErrorCorrectionLevel(ErrorCorrectionLevel::QR_ECLEVEL_M); // default is ErrorCorrectionLevel::QR_ECLEVEL_M $qr->setSize(100); // Set size of the qr code $qr->setMargin(4); // Set margin of the qr code $qr->save(storage_path('app/qr.png'));
Credits
- Yee Jia Wei
- All Contributors
- Phil Karn, KA9Q
License
The MIT License (MIT). Please see License File for more information.