PHPackages                             slava-basko/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. slava-basko/bacon-qr-code

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

slava-basko/bacon-qr-code
=========================

BaconQrCode is a QR code generator for PHP.

1.0.0(3y ago)08461[1 PRs](https://github.com/slava-basko/BaconQrCode/pulls)BSD-2-ClausePHPPHP ^5

Since Aug 9Pushed 3y agoCompare

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

READMEChangelogDependencies (4)Versions (2)Used By (0)

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

[](#qr-code-generator)

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

### How to run tests

[](#how-to-run-tests)

Install dependencies

```
docker run -v `pwd`:/var/www --rm feitosa/php55-with-composer composer install
```

Run tests

```
docker run -v `pwd`:/var/www --rm feitosa/php55-with-composer vendor/bin/phpunit
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.5% 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

Unknown

Total

1

Last Release

1368d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a8e37b4c52b1cfe4f5d64f420d21875ebdeb53954d6859d6d663038b95ef3cc?d=identicon)[slava-basko](/maintainers/slava-basko)

---

Top Contributors

[![DASPRiD](https://avatars.githubusercontent.com/u/233300?v=4)](https://github.com/DASPRiD "DASPRiD (116 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)")[![JercSi](https://avatars.githubusercontent.com/u/5267726?v=4)](https://github.com/JercSi "JercSi (6 commits)")[![ausi](https://avatars.githubusercontent.com/u/367169?v=4)](https://github.com/ausi "ausi (2 commits)")[![rodrigost23](https://avatars.githubusercontent.com/u/1831465?v=4)](https://github.com/rodrigost23 "rodrigost23 (2 commits)")[![wyattoday](https://avatars.githubusercontent.com/u/11202536?v=4)](https://github.com/wyattoday "wyattoday (2 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)")[![mustanggb](https://avatars.githubusercontent.com/u/1636013?v=4)](https://github.com/mustanggb "mustanggb (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)")[![michaeldyrynda](https://avatars.githubusercontent.com/u/558441?v=4)](https://github.com/michaeldyrynda "michaeldyrynda (1 commits)")[![AshleyPinner](https://avatars.githubusercontent.com/u/6331215?v=4)](https://github.com/AshleyPinner "AshleyPinner (1 commits)")[![pavlm](https://avatars.githubusercontent.com/u/8758854?v=4)](https://github.com/pavlm "pavlm (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[bizley/contenttools

ContentTools editor implementation for Yii 2.

8016.7k](/packages/bizley-contenttools)

PHPackages © 2026

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