Download the PHP package codelint/qr-code without Composer
On this page you can find all versions of the php package codelint/qr-code. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package qr-code
QR Code
By endroid
This library helps you generate QR codes in a jiffy. Makes use of bacon/bacon-qr-code to generate the matrix and khanamiryan/qrcode-detector-decoder for validating generated QR codes. Further extended with Twig extensions, generation routes, a factory and a Symfony bundle for easy installation and configuration.
Installation
Use Composer to install the library.
Basic usage
Advanced usage
Built-in validation reader
You can enable the built-in validation reader (disabled by default) by calling setValidateResult(true). This validation reader does not guarantee that the QR code will be readable by all readers but it helps you provide a minimum level of quality.
The readability of a QR code is primarily determined by the size, the input length, the error correction level and any possible logo over the image so you can tweak these parameters if you are looking for optimal results. You can also check $qrCode->getRoundBlockSize() value to see if block dimensions are rounded so that the image is more sharp and readable.
Take note that the validator can consume quite amount of additional resources.
Symfony integration
The endroid/qr-code-bundle integrates the QR code library in Symfony for an even better experience.
- Configure your defaults (like image size, default writer etc.)
- Generate QR codes quickly from anywhere via the factory service
- Generate QR codes directly by typing an URL like /qr-code/\
.png?size=300 - Generate QR codes or URLs directly from Twig using dedicated functions
Read the bundle documentation for more information.
Versioning
Version numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatibility breaking changes will be kept to a minimum but be aware that these can occur. Lock your dependencies for production and test your code when upgrading.
License
This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code.
All versions of qr-code with dependencies
ext-gd Version *
bacon/bacon-qr-code Version ^2.0
khanamiryan/qrcode-detector-decoder Version ^1.0.2
symfony/http-foundation Version ^3.4||^4.0
symfony/options-resolver Version ^3.4||^4.0
symfony/property-access Version ^3.4||^4.0
myclabs/php-enum Version ^1.5