devtical / nova-qrcode-field
Nova QR code field
Fund package maintenance!
Kristories
Installs: 9 999
Dependents: 2
Suggesters: 0
Security: 0
Stars: 30
Watchers: 3
Forks: 14
Open Issues: 0
Requires
- php: ^7.4|^8.0
- laravel/nova: ^4.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- orchestra/testbench: ^6.24|^7.0
- phpunit/phpunit: ^9.4
This package is auto-updated.
Last update: 2023-05-27 16:36:14 UTC
README
A Laravel Nova field to generate QR Code.
Installation
You can install the Nova field in to a Laravel app that uses Nova via composer :
composer require devtical/nova-qrcode-field
Usage
use Devtical\Qrcode\Qrcode;
Basic
Qrcode::make('QR Code', 'field')
Setting sizes
Qrcode::make('QR Code', 'field') ->indexSize(100) ->detailSize(500)
With logo
Qrcode::make('QR Code', 'field') ->logo('http://source.to/logo.png')
With background
Qrcode::make('QR Code', 'field') ->background('http://source.to/background.png')
With logo & background
Qrcode::make('QR Code', 'field') ->logo('http://source.to/logo.png') ->background('http://source.to/background.png')
Related
Credits
License
The MIT License (MIT).