YeeJiaWei / laravel-qrcode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel wrapper for phpqrcode

Latest Version on Packagist Total Downloads

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

License

The MIT License (MIT). Please see License File for more information.

About

License:GNU Lesser General Public License v3.0


Languages

Language:PHP 100.0%Language:Shell 0.0%Language:Batchfile 0.0%