PHPackages                             cmobi/qrcode-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. cmobi/qrcode-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

cmobi/qrcode-bundle
===================

BushidoIOQRCodeBundle

1.0.3(8y ago)0520MITPHPPHP &gt;=5.3.2

Since Aug 11Pushed 8y ago2 watchersCompare

[ Source](https://github.com/contamobi/QRCodeBundle)[ Packagist](https://packagist.org/packages/cmobi/qrcode-bundle)[ Docs](https://github.com/contamobi/QRCodeBundle)[ RSS](/packages/cmobi-qrcode-bundle/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (3)Dependencies (2)Versions (8)Used By (0)

BushidoIOQRCodeBundle
=====================

[](#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
------------

[](#installation)

### Step 1: Composer

[](#step-1-composer)

Add the following require line to the `composer.json` file:

```
{
    "require": {
        "bushidoio/qrcode-bundle": "dev-master"
    }
}
```

And actually install it in your project using Composer:

```
php composer.phar install
```

You can also do this in one step with this command:

```
$ php composer.phar require bushidoio/qrcode-bundle "dev-master"
```

### Step 2: Enable the bundle

[](#step-2-enable-the-bundle)

Enable the bundle in the kernel:

```
