Download the PHP package endroid/qrcode-bundle without Composer
On this page you can find all versions of the php package endroid/qrcode-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package qrcode-bundle
QR Code Bundle
By endroid
This Symfony bundle lets you generate QR Codes using the endroid/qr-code library. It provides the following features:
- Configure your defaults (like image size, default writer etc.)
- Support for multiple configurations and injection via aliases
- Generate QR codes for defined configurations via URL like /qr-code/
/Hello - Generate QR codes or URLs directly from Twig using dedicated functions
Installation
Use Composer to install the library. Also make sure you have enabled and configured the GD extension if you want to generate images.
When you use Symfony, the installer
makes sure that services are automatically wired. If this is not the case you
can find the configuration files in the .install/symfony
folder.
If you don't want the installer to create the auto-configuration files, it can be disabled as described here.
Configuration
The bundle makes use of builders to create QR codes. The default parameters applied by the builder can optionally be overridden via the configuration. and multiple configurations (thus builders) can be defined.
Using builders
Each configuration results in a builder which can be injected in your classes. For instance the custom builder from the example above can be injected like this and you can override the default configuration as follows.
QR Code Response
The bundle also provides a response object to ease rendering of the resulting image by automatically saving to contents and setting the correct content type.
Generate via URL
The bundle provides a controller that allows you to generate QR codes simply by opening an URL like /qr-code/{builder}/{data}. You can configure the prefix in your routing file and pass any of the existing options via query string.
Generate via Twig
The bundle provides a Twig extension for generating a QR code URL, path or data URI. You can use the second argument to specify the builder to use.
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 source code is subject to the MIT license bundled in the file LICENSE.
All versions of qrcode-bundle with dependencies
endroid/installer Version ^1.2.2
endroid/qr-code Version ^6.0.1
symfony/framework-bundle Version ^5.4||^6.4||^7.0
symfony/twig-bundle Version ^5.4||^6.4||^7.0
symfony/yaml Version ^5.4||^6.4||^7.0