PHPackages                             nextqs/bacon-qr-code - 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. nextqs/bacon-qr-code

ActiveLibrary

nextqs/bacon-qr-code
====================

BaconQrCode is a QR code generator for PHP.

2.0.4(4y ago)08.0k↑66.7%1BSD-2-ClausePHPPHP ^7.1 || ^8.0

Since Aug 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/nextqs/BaconQrCode)[ Packagist](https://packagist.org/packages/nextqs/bacon-qr-code)[ Docs](https://github.com/Bacon/BaconQrCode)[ RSS](/packages/nextqs-bacon-qr-code/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (15)Used By (1)

QR Code generator
=================

[](#qr-code-generator)

[![Build Status](https://camo.githubusercontent.com/d01087af68c4a8ba33661eb774fea0463ef90f8e6fb15c4e974e6048ecb62e25/68747470733a2f2f6170692e7472617669732d63692e6f72672f4261636f6e2f4261636f6e5172436f64652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/Bacon/BaconQrCode)[![Coverage Status](https://camo.githubusercontent.com/60044e33e679ee0ae9df2f4b624c1591e3e08ff3cab3b43431e16dfdef2167c5/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4261636f6e2f4261636f6e5172436f64652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/Bacon/BaconQrCode?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/a6c4c86da7ebb9f6d9124bbbb1c804e8c64d389f6e6dbdb936f69f1d955c4064/68747470733a2f2f706f7365722e707567782e6f72672f6261636f6e2f6261636f6e2d71722d636f64652f762f737461626c65)](https://packagist.org/packages/bacon/bacon-qr-code)[![Total Downloads](https://camo.githubusercontent.com/1839a98882c786c60c09429fe345ef085ca1d6d09c82e2c30ec2d91112b013e8/68747470733a2f2f706f7365722e707567782e6f72672f6261636f6e2f6261636f6e2d71722d636f64652f646f776e6c6f616473)](https://packagist.org/packages/bacon/bacon-qr-code)[![License](https://camo.githubusercontent.com/354eea7b45f2690d2e601e0ced5304e3adba7ed0f3e52185bc4ea269bbc63e9a/68747470733a2f2f706f7365722e707567782e6f72672f6261636f6e2f6261636f6e2d71722d636f64652f6c6963656e7365)](https://packagist.org/packages/bacon/bacon-qr-code)

Introduction
------------

[](#introduction)

BaconQrCode is a port of QR code portion of the ZXing library. It currently only features the encoder part, but could later receive the decoder part as well.

As the Reed Solomon codec implementation of the ZXing library performs quite slow in PHP, it was exchanged with the implementation by Phil Karn.

Example usage
-------------

[](#example-usage)

```
use BaconQrCode\Renderer\ImageRenderer;
use BaconQrCode\Renderer\Image\ImagickImageBackEnd;
use BaconQrCode\Renderer\RendererStyle\RendererStyle;
use BaconQrCode\Writer;

$renderer = new ImageRenderer(
    new RendererStyle(400),
    new ImagickImageBackEnd()
);
$writer = new Writer($renderer);
$writer->writeFile('Hello World!', 'qrcode.png');
```

Available image renderer back ends
----------------------------------

[](#available-image-renderer-back-ends)

BaconQrCode comes with multiple back ends for rendering images. Currently included are the following:

- `ImagickImageBackEnd`: renders raster images using the Imagick library
- `SvgImageBackEnd`: renders SVG files using XMLWriter
- `EpsImageBackEnd`: renders EPS files

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 71.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~300 days

Recently: every ~187 days

Total

13

Last Release

1049d ago

Major Versions

1.0.3 → 2.0.02018-04-25

PHP version history (5 changes)1.0.0PHP &gt;=5.3.3

1.0.3PHP ^5.4|^7.0

2.0.0PHP ^7.1

2.0.3PHP ^7.1 || ^8.0

1.0.4.x-devPHP &gt;=7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34106284?v=4)[NextQs](/maintainers/nextqs)[@nextqs](https://github.com/nextqs)

---

Top Contributors

[![DASPRiD](https://avatars.githubusercontent.com/u/233300?v=4)](https://github.com/DASPRiD "DASPRiD (100 commits)")[![Thinkscape](https://avatars.githubusercontent.com/u/270528?v=4)](https://github.com/Thinkscape "Thinkscape (14 commits)")[![williamdes](https://avatars.githubusercontent.com/u/7784660?v=4)](https://github.com/williamdes "williamdes (9 commits)")[![MarceloMelo1](https://avatars.githubusercontent.com/u/10995789?v=4)](https://github.com/MarceloMelo1 "MarceloMelo1 (3 commits)")[![rodrigost23](https://avatars.githubusercontent.com/u/1831465?v=4)](https://github.com/rodrigost23 "rodrigost23 (2 commits)")[![ausi](https://avatars.githubusercontent.com/u/367169?v=4)](https://github.com/ausi "ausi (2 commits)")[![wyattoday](https://avatars.githubusercontent.com/u/11202536?v=4)](https://github.com/wyattoday "wyattoday (2 commits)")[![pavlm](https://avatars.githubusercontent.com/u/8758854?v=4)](https://github.com/pavlm "pavlm (1 commits)")[![iben12](https://avatars.githubusercontent.com/u/2972954?v=4)](https://github.com/iben12 "iben12 (1 commits)")[![ihaohong](https://avatars.githubusercontent.com/u/4004455?v=4)](https://github.com/ihaohong "ihaohong (1 commits)")[![kelunik](https://avatars.githubusercontent.com/u/2743004?v=4)](https://github.com/kelunik "kelunik (1 commits)")[![AshleyPinner](https://avatars.githubusercontent.com/u/6331215?v=4)](https://github.com/AshleyPinner "AshleyPinner (1 commits)")[![pdalfarr](https://avatars.githubusercontent.com/u/1537201?v=4)](https://github.com/pdalfarr "pdalfarr (1 commits)")[![SimplyCorey](https://avatars.githubusercontent.com/u/624784?v=4)](https://github.com/SimplyCorey "SimplyCorey (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/nextqs-bacon-qr-code/health.svg)

```
[![Health](https://phpackages.com/badges/nextqs-bacon-qr-code/health.svg)](https://phpackages.com/packages/nextqs-bacon-qr-code)
```

###  Alternatives

[bacon/bacon-qr-code

BaconQrCode is a QR code generator for PHP.

2.1k165.5M372](/packages/bacon-bacon-qr-code)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
