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, 13 versions, php 8.2, 8.3, 8.4 and 8.5
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 and simplesoftwareio/simple-qrcode. The Quar package is a new qr code generation package with compatibility for Laravel 10, Laravel 11, Laravel 12, Laravel 13 and Php 8.2, Php 8.3, Php 8.4, Php 8.5.
Minimum Requirements
- PHP 8.2+
- 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 Version
QR codes have 40 versions (1-40); a higher version provides a larger grid and therefore more data capacity. By default the version is selected automatically based on the content and the error correction level. You may force a specific version with the version() method.
Any integer between 1 and 40 is accepted. For readability, VERSION_1 through VERSION_40 constants are also available on the Quar facade, so version(13) and version(Quar::VERSION_13) are equivalent.
Attention : The version must be between 1 and 40. If the content does not fit into the requested version, a WriterException is thrown. When version() is not used, the smallest fitting version is selected automatically, exactly as before.
QR Code Versions Response
Example of Setting Qr Code Detection Markers
Available Markers Type
square: Default Marker Typeroundedcirclering
Qr Code Markers Response
Example of Setting Qr Code Body Pattern Style
Available Body Pattern
square: Default Patterndotroundstarvertigo
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
verticalhorizontaldiagonalinverse_diagonalradial
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 :
Adding Text Around a QR Code
Example :
Example Result :
Customizing the Text
Example :
Example Result :
Available Text Positions
top,bottom: Default Position,left,right,top-left,top-right,bottom-left,bottom-right,
Example :
Example Result :
Authors
Contributing
Pull requests and issues are more than welcome.