PHPackages                             bushidoio/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. bushidoio/qrcode-bundle

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

bushidoio/qrcode-bundle
=======================

BushidoIOQRCodeBundle

v2.0.0(8y ago)6717↓80%4MITPHPPHP &gt;=5.3.2

Since Sep 1Pushed 2y agoCompare

[ Source](https://github.com/BushidoIO/QRCodeBundle)[ Packagist](https://packagist.org/packages/bushidoio/qrcode-bundle)[ Docs](https://github.com/BushidoIO/QRCodeBundle)[ RSS](/packages/bushidoio-qrcode-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)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:

```
