PHPackages                             tourze/bacon-qr-code-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. [Image &amp; Media](/categories/media)
4. /
5. tourze/bacon-qr-code-bundle

ActiveSymfony-bundle[Image &amp; Media](/categories/media)

tourze/bacon-qr-code-bundle
===========================

Symfony Bundle for bacon/bacon-qr-code

0.1.0(7mo ago)09491MITPHPCI passing

Since Apr 25Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/tourze/bacon-qr-code-bundle)[ Packagist](https://packagist.org/packages/tourze/bacon-qr-code-bundle)[ RSS](/packages/tourze-bacon-qr-code-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (20)Versions (5)Used By (1)

Bacon QR Code Bundle
====================

[](#bacon-qr-code-bundle)

[English](README.md) | [中文](README.zh-CN.md)

[![Latest Version](https://camo.githubusercontent.com/71d1fe8879c198f9bf794407197bd4047af8b974b7f1145758acc5b4b597d5b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f6261636f6e2d71722d636f64652d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/bacon-qr-code-bundle)[![License](https://camo.githubusercontent.com/9cabe2ba98d8dae13890170e2af1a57b405edde1abbf24541c034b40cb256e8c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f746f75727a652f7068702d6d6f6e6f7265706f2e7376673f7374796c653d666c61742d737175617265)](https://github.com/tourze/php-monorepo/blob/main/LICENSE)[![PHP Version](https://camo.githubusercontent.com/f42cdd90e605524240455887eec58e12b15bb16119a132d4736f9f6c079f2173/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f6261636f6e2d71722d636f64652d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/bacon-qr-code-bundle)

A Symfony bundle for [bacon/bacon-qr-code](https://github.com/Bacon/BaconQrCode) library that provides QR code generation capabilities in your Symfony application.

Features
--------

[](#features)

- Easy integration with Symfony applications
- Multiple output formats support (PNG, SVG, EPS)
- Customizable QR code size and margin
- Simple URL generation for QR codes
- Automatic detection of available image libraries (GD, Imagick)
- Twig function for easy template integration

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Symfony 6.4 or higher
- ext-filter PHP extension
- One of the following image libraries (optional, for PNG support):
    - GD extension (ext-gd)
    - ImageMagick extension (ext-imagick)

Installation
------------

[](#installation)

```
composer require tourze/bacon-qr-code-bundle
```

Register the bundle in your `config/bundles.php`:

```
