PHPackages                             askdkc/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. [Image &amp; Media](/categories/media)
4. /
5. askdkc/bacon-qr-code

ActiveLibrary[Image &amp; Media](/categories/media)

askdkc/bacon-qr-code
====================

BaconQrCode is a QR code generator for PHP. SHIFT-JISエンコード時のエラーを修正した版

v2.1.5(2y ago)0681BSD-2-ClausePHPPHP ^8.1

Since Mar 18Pushed 2y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (5)Versions (2)Used By (1)

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

[](#qr-code-generator)

[![PHP CI](https://github.com/Bacon/BaconQrCode/actions/workflows/ci.yml/badge.svg)](https://github.com/Bacon/BaconQrCode/actions/workflows/ci.yml)[![codecov](https://camo.githubusercontent.com/c288bfa562cc221d8b885237ce50317555f0214e30bf329a658d3357b21aa8b7/68747470733a2f2f636f6465636f762e696f2f67682f4261636f6e2f4261636f6e5172436f64652f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d72443048634169454578)](https://codecov.io/gh/Bacon/BaconQrCode)[![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)

This is forked package with Shift-JIS output fixes
==================================================

[](#this-is-forked-package-with-shift-jis-output-fixes)

If you need to output Shift-JIS encoded QRcode, use this package.

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

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

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

789d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f49805fbc734c6d403fc58bb4c1b8146aa97be24f1cb02ae16a80d0eed82b6f1?d=identicon)[askdkc](/maintainers/askdkc)

---

Top Contributors

[![askdkc](https://avatars.githubusercontent.com/u/7894265?v=4)](https://github.com/askdkc "askdkc (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

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