Download the PHP package tourze/bacon-qr-code-bundle without Composer
On this page you can find all versions of the php package tourze/bacon-qr-code-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tourze/bacon-qr-code-bundle
More information about tourze/bacon-qr-code-bundle
Files in tourze/bacon-qr-code-bundle
Package bacon-qr-code-bundle
Short Description Symfony Bundle for bacon/bacon-qr-code
License MIT
Informations about the package bacon-qr-code-bundle
Bacon QR Code Bundle
中文
A Symfony bundle for bacon/bacon-qr-code library that provides QR code generation capabilities in your Symfony application.
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
- 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
Register the bundle in your config/bundles.php:
Import routes in your config/routes.yaml:
Quick Start
Generate QR Code URL
Display QR Code in Twig Template
Direct QR Code Generation
Twig Functions
qr_code_url
Generate a QR code URL directly in your templates:
Available Options
When generating QR codes, you can customize the following options:
| Option | Description | Default Value |
|---|---|---|
size |
Size of the QR code in pixels | 300 |
margin |
Margin around the QR code in pixels | 10 |
format |
Output format ('png', 'svg', 'eps') | 'png' if GD or Imagick is available, otherwise 'svg' |
Workflow
The following diagram shows the QR code generation workflow:
Testing
Run the tests using PHPUnit:
Contributing
Please see CONTRIBUTING.md for details.
License
The MIT License (MIT). Please see License File for more information.
All versions of bacon-qr-code-bundle with dependencies
bacon/bacon-qr-code Version ^3.0
symfony/config Version ^7.3
symfony/dependency-injection Version ^7.3
symfony/form Version ^7.3
symfony/framework-bundle Version ^7.3
symfony/http-foundation Version ^7.3
symfony/http-kernel Version ^7.3
symfony/property-access Version ^7.3
symfony/routing Version ^7.3
symfony/twig-bundle Version ^7.3
symfony/yaml Version ^7.3
tourze/bundle-dependency Version 1.*
tourze/symfony-dependency-service-loader Version 1.0.*
tourze/symfony-routing-auto-loader-bundle Version 1.0.*
twig/twig Version ^3.21