Download the PHP package cmobi/qrcode-bundle without Composer
On this page you can find all versions of the php package cmobi/qrcode-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cmobi/qrcode-bundle
More information about cmobi/qrcode-bundle
Files in cmobi/qrcode-bundle
Package qrcode-bundle
Short Description BushidoIOQRCodeBundle
License MIT
Homepage https://github.com/contamobi/QRCodeBundle
Informations about the package qrcode-bundle
BushidoIOQRCodeBundle
The BushidoIOQRCodeBundle adds QRCode generation support in Symfony2.
Features included:
- URL and BASE64 encoded image generation
- Twig filter and function support
- Cacheable images for less CPU usage
- Configurable cache expiration age for both http and https
- Cache and logs path can be located inside or outside Symfony2 app folder tree
- Absolute or relative URL generation
- PNG maximum image size definition (default 1024 pixels)
- Configurable find mask setup (best mask, random mask and default mask value)
Installation
Step 1: Composer
Add the following require line to the composer.json
file:
And actually install it in your project using Composer:
You can also do this in one step with this command:
Step 2: Enable the bundle
Enable the bundle in the kernel:
Step 3: Enable the route
Add this to your routing configuration in app/config/routing.yml
:
Configuration
You can configure some options in app/config/config.yml
. Those are the default
values:
Usage examples
You can use Twig functions or filtes to create URL or BASE64 encoded images. If no parameters are used the default options for the image are size 3 (87x87 pixels) and PNG format.
License
This bundle is under the MIT license. See the complete license in the bundle:
Resources/meta/LICENSE
This bundle uses PHP QR Code encoder under the hood. PHP QR Code is distributed
under LGPL 3. Copyright (C) 2010 Dominik Dzienia
Lib/phpqrcode/LICENSE
PHP QR Code encoder is a PHP implementation of QR Code 2-D barcode generator. It is pure-php LGPL-licensed implementation based on C libqrencode by Kentaro Fukuchi.