2017 © Pedro Peláez
 

symfony-bundle qrcode-bundle

BushidoIOQRCodeBundle

image

cmobi/qrcode-bundle

BushidoIOQRCodeBundle

  • Thursday, August 17, 2017
  • by cmobi
  • Repository
  • 2 Watchers
  • 0 Stars
  • 510 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 8 Versions
  • 5 % Grown

The README.md

BushidoIOQRCodeBundle

The BushidoIOQRCodeBundle adds QRCode generation support in Symfony2., (*1)

Features included:, (*2)

  • 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: ``` json { "require": { "bushidoio/qrcode-bundle": "dev-master" } }, (*3)

And actually install it in your project using Composer:
``` bash
php composer.phar install

You can also do this in one step with this command: ``` bash $ php composer.phar require bushidoio/qrcode-bundle "dev-master", (*4)


### Step 2: Enable the bundle Enable the bundle in the kernel: ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new BushidoIO\QRCodeBundle\BushidoIOQRCodeBundle(), ); }

Step 3: Enable the route

Add this to your routing configuration in app/config/routing.yml:, (*5)

``` yaml bushidoio_qrcode: resource: "@BushidoIOQRCodeBundle/Controller/" type: annotation, (*6)


Configuration ------------- You can configure some options in `app/config/config.yml`. Those are the default values: ``` yaml bushidoio_qrcode: cacheable: true cache_dir: ~ logs_dir: ~ find_best_mask: true find_from_random: false default_mask: 2 png_maximum_size: 1024 absolute_url: true http_max_age: 600 https_max_age: 600

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., (*7)

``` html , (*8)

, (*9)

, (*10)

, (*11)

, (*12)

, (*13)

, (*14)

, (*15)

, (*16)

, (*17)

, (*18)

```, (*19)

License

This bundle is under the MIT license. See the complete license in the bundle:, (*20)

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 See complete license in:, (*21)

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., (*22)

The Versions

17/08 2017

dev-master

9999999-dev https://github.com/contamobi/QRCodeBundle

BushidoIOQRCodeBundle

  Sources   Download

MIT

The Requires

 

by Eneko

twig qr code

17/08 2017

1.0.3

1.0.3.0 https://github.com/contamobi/QRCodeBundle

BushidoIOQRCodeBundle

  Sources   Download

MIT

The Requires

 

by Eneko

twig qr code

17/08 2017

dev-fix/name-cache-voucher

dev-fix/name-cache-voucher https://github.com/contamobi/QRCodeBundle

BushidoIOQRCodeBundle

  Sources   Download

MIT

The Requires

 

by Eneko

twig qr code

11/08 2017

1.0.2

1.0.2.0 https://github.com/contamobi/QRCodeBundle

BushidoIOQRCodeBundle

  Sources   Download

MIT

The Requires

 

by Eneko

twig qr code

11/08 2017

1.0.1

1.0.1.0 https://github.com/contamobi/QRCodeBundle

BushidoIOQRCodeBundle

  Sources   Download

MIT

The Requires

 

by Eneko

twig qr code

11/08 2017

dev-fix/namespace

dev-fix/namespace https://github.com/contamobi/QRCodeBundle

BushidoIOQRCodeBundle

  Sources   Download

MIT

The Requires

 

by Eneko

twig qr code

11/08 2017

1.0.0

1.0.0.0 https://github.com/contamobi/QRCodeBundle

BushidoIOQRCodeBundle

  Sources   Download

MIT

The Requires

 

by Eneko

twig qr code

11/08 2017

dev-fix/service

dev-fix/service https://github.com/contamobi/QRCodeBundle

BushidoIOQRCodeBundle

  Sources   Download

MIT

The Requires

 

by Eneko

twig qr code