Download the PHP package primer/phpqrcode without Composer
On this page you can find all versions of the php package primer/phpqrcode. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download primer/phpqrcode
More information about primer/phpqrcode
Files in primer/phpqrcode
Package phpqrcode
Short Description A modern implementaion of QR code 2D barcode generator. Pure-php LGPL implementation based on https://phpqrcode.sourceforge.net, itself based on C libqrencode by Kentaro Fukuchi.
License LGPL-2.1-or-later
Homepage https://github.com/primer97/phpqrcode
Informations about the package phpqrcode
phpqrcode
PHP QRCode Generator Library for php.
A modern implementaion of QR code 2D barcode generator. Pure-php LGPL implementation based on inital phpqrcode, itself based on C libqrencode.
Installation
Type on the terminal
composer require primer/phpqrcode
Or, by adding this entry on the composer.json file
Usage
Encode "data" into a png file:
Options
Correction Level
(int) correction level, fom the lowest to highest:
QRConstants::QR_ECLEVEL_L0QRConstants::QR_ECLEVEL_M1QRConstants::QR_ECLEVEL_Q2QRConstants::QR_ECLEVEL_H3
Size
(int) Pixel size
Margin
(int) Raw silent zone (margin zone = raw * size)
Save and Print
(bool) Use saveAndPrint (bool) option to send to the browser both http header and image content.
Settings
This package automatically determines the best mode, but user can force to one of these modes :
QRConstants::QR_MODE_NUM: Force Numeric ModeQRConstants::QR_MODE_AN: Force Alpha-Numeric ModeQRConstants::QR_MODE_8: Force BYTE8 Mode (utf8)QRConstants::QR_MODE_KANJI: Force Kanji Mode (Shift-JIS)
Exemple :
For experts,
user can also manipulate mask options,
see QRSettings::setDefaultMask(...); and QRSettings::setFindBestMask(...);
Minimum requirements
- PHP 7.3 for 1.2.x versions and below
- PHP 7.4 for 1.4.x versions and later
Credits
- Kentaro Fukuchi: for inital libqrencode C Lib ([email protected])
- Dominik Dzienia: for https://phpqrcode.sourceforge.net ([email protected])
All versions of phpqrcode with dependencies
ext-gd Version *
ext-zlib Version *