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.1CI failing

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 yesterday

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 31% 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

837d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7894265?v=4)[askdkc](/maintainers/askdkc)[@askdkc](https://github.com/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

[bacon/bacon-qr-code

BaconQrCode is a QR code generator for PHP.

2.1k185.3M532](/packages/bacon-bacon-qr-code)[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)[rsoury/wp-imgix

Rewrites WordPress image URLs to use ImgIX

167.2k](/packages/rsoury-wp-imgix)

PHPackages © 2026

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