A PHP library for generating QR codes with multiple image format backends.
BaconQRCode is a PHP library for generating QR codes, ported from the ZXing library's encoder component. It solves the need for a reliable, performant QR code generation solution in PHP applications, offering multiple rendering backends for different image formats. The library replaces the original ZXing Reed-Solomon implementation with a faster PHP-optimized version to improve encoding speed.
PHP developers who need to integrate QR code generation into web applications, APIs, or command-line tools, particularly those requiring output in specific formats like PNG, SVG, or EPS.
Developers choose BaconQRCode for its proven ZXing-based encoding reliability, performance optimizations for PHP, and flexibility in output formats through pluggable renderer backends, avoiding the limitations of simpler QR code generators.
QR Code Generator for PHP
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Built on the proven ZXing library's encoder, ensuring accurate and standards-compliant QR code generation, as noted in the README's emphasis on porting from ZXing.
Uses Phil Karn's Reed-Solomon implementation for faster encoding in PHP, explicitly replacing ZXing's slower version to improve speed.
Supports multiple backends for PNG (via Imagick/GD), SVG, and EPS, allowing developers to choose formats suited to web, print, or scalability needs.
Regular updates, CI testing, and code coverage badges indicate ongoing development and stability, with a stable version available on Packagist.
A documented issue with ImagickImageBackEnd causes white pixel artifacts that the library cannot fix, forcing users to switch backends for clean raster output.
GD support is separate and restrictive, lacking curves and gradients per the README, resulting in squared QR codes and reduced styling options.
Only provides encoding functionality, so developers need additional libraries for reading QR codes, limiting its utility in full-featured applications.