Download the PHP package tuncaybahadir/quar without Composer
On this page you can find all versions of the php package tuncaybahadir/quar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tuncaybahadir/quar
More information about tuncaybahadir/quar
Files in tuncaybahadir/quar
Package quar
Short Description A simple QR Code generation tool for your projects with Laravel 10, 11, 12 versions, php 8.3 and 8.4
License MIT
Homepage https://github.com/tuncaybahadir/quar
Informations about the package quar
Qr Code Generator For Laravel
Introduction
To generate Qr Code with Laravel, Quar references packages provided by [Bacon/BaconQrCode] (https://github.com/Bacon/BaconQrCode) and [simplesoftwareio/simple-qrcode] (https://github.com/SimpleSoftwareIO/simple-qrcode). The Quar package is a new qr code generation package with compatibility for Laravel 10, Laravel 11, Laravel 12 and Php 8.3, Php 8.4.
Minimum Requirements
- PHP 8.3+
- Laravel 10+
Installing
Use Composer to install it:
Simple usage
And use it in your blade template this way:
Simple usage Response
Example of Setting Qr Code Size
Qr Code Size Response
Example of Setting Qr Code Detection Markers
Available Markers Type
square
: Default Marker Typerounded
circle
ring
Qr Code Markers Response
Example of Setting Qr Code Body Pattern Style
Available Body Pattern
square
: Default Patterndot
round
star
vertigo
Attention : The maximum smoothness value for square, dot and round designs is 0.9 and the maximum smoothness value for star and vertigo designs is 0.5.
Qr Code Body Pattern Style Response
Example of Setting Qr Code Gradient Coloring
Available Gradient Type
vertical
horizontal
diagonal
inverse_diagonal
radial
Qr Code Gradient Coloring Response
Qr Code Coloring Markers Example 1
Qr Code Coloring Markers Response 1
Qr Code Hex Code With Coloring Markers Example 2
Qr Code Hex Code With Coloring Markers Response 2
Qr Code Coloring Example 1
Qr Code Coloring Response 1
Qr Code Hex Code With Coloring Example 2
Qr Code Hex Code With Coloring Response 2
Example Of Coloring Qr Code Background With Hex Code 1
Example Of Coloring Qr Code Background With Hex Code 1
Example Of Coloring The Background Of Qr Code 2
Sample Result Of Coloring The Background Of Qr Code Response 2
Qr Code And Markers Coloring Example
Qr Code and Marker Coloring Response
Example of Saving Qr Code as a Png File
And use it in your blade template this way:
Saving Qr Code as a File Response
Example of Compressing and Saving a Qr Code as a Png File
Example of Adding Logo on QR Code
Attention !!! : Due to a bug in the BaconQrCode package, you must set the margin value to 1 or higher during logo insertion. Otherwise the qr code is generated incorrectly.
Example 1:
Example 2:
And use it in your blade template this way:
Adding Logo on Qr Code Sample Code Result 1:
Adding Logo on Qr Code Sample Code Result 2:
Example of Adding Logo on QR Code with Laravel Conditionable Trait class
Example :
Authors
Contributing
Pull requests and issues are more than welcome.