Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. QR Code
  3. BaconQRCode W

BaconQRCode W

BSD-2-ClausePHPv3.1.1

A PHP library for generating QR codes with multiple image format backends.

GitHubGitHub
2.1k stars227 forks0 contributors

What is BaconQRCode W?

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.

Target Audience

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.

Value Proposition

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.

Overview

QR Code Generator for PHP

Use Cases

Best For

  • Generating QR codes for PHP-based e-commerce or ticketing systems
  • Creating SVG QR codes for scalable print or web graphics
  • Integrating QR code generation into Laravel or Symfony applications
  • Producing EPS format QR codes for professional printing workflows
  • Building custom QR code generation APIs in PHP
  • Adding QR code functionality to legacy PHP applications with GD library support

Not Ideal For

  • Projects requiring artifact-free raster images with Imagick, due to the known white pixel bug that cannot be reliably fixed.
  • Environments where Imagick is unavailable and curved or styled QR codes are needed, as GD support forces squared shapes and lacks gradients.
  • Applications that need both QR code encoding and decoding, since it only handles generation.
  • Teams seeking a zero-configuration, drop-in solution, as setup involves choosing backends and managing dependencies like Imagick or GD.

Pros & Cons

Pros

ZXing-Based Reliability

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.

Performance Optimizations

Uses Phil Karn's Reed-Solomon implementation for faster encoding in PHP, explicitly replacing ZXing's slower version to improve speed.

Flexible Output Formats

Supports multiple backends for PNG (via Imagick/GD), SVG, and EPS, allowing developers to choose formats suited to web, print, or scalability needs.

Active Maintenance

Regular updates, CI testing, and code coverage badges indicate ongoing development and stability, with a stable version available on Packagist.

Cons

Imagick Artifact Bug

A documented issue with ImagickImageBackEnd causes white pixel artifacts that the library cannot fix, forcing users to switch backends for clean raster output.

GD Library Limitations

GD support is separate and restrictive, lacking curves and gradients per the README, resulting in squared QR codes and reduced styling options.

Decoder Missing

Only provides encoding functionality, so developers need additional libraries for reading QR codes, limiting its utility in full-featured applications.

Frequently Asked Questions

Quick Stats

Stars2,084
Forks227
Contributors0
Open Issues3
Last commit3 months ago
CreatedSince 2013

Tags

#barcode#zxing-port#qr-code#gd-library#svg#image-generation#imagick#php#composer-package

Built With

I
Imagick
P
PHP
N
Node.js
G
GD Library

Included in

QR Code144
Auto-fetched 19 hours ago

Related Projects

endroid/qr-code Wendroid/qr-code W

PHP QR Code library that helps you create QR codes in a jiffy

Stars4,799
Forks770
Last commit5 months ago
simple-qrcode Wsimple-qrcode W

An easy-to-use PHP QrCode generator with first-party support for Laravel.

Stars2,906
Forks457
Last commit1 year ago
php-qrcode-detector-decoder Rphp-qrcode-detector-decoder R

This is a PHP library to detect and decode QR-codes. This is first and only QR code reader that works without extensions.

Stars1,413
Forks321
Last commit1 year ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub