PHPackages                             kumonko/qrcode - 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. kumonko/qrcode

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

kumonko/qrcode
==============

QRCode generator updated from psyon/php-qrcode

02.7kPHP

Since Apr 3Pushed 5y agoCompare

[ Source](https://github.com/KuMoNKo/php-qrcode)[ Packagist](https://packagist.org/packages/kumonko/qrcode)[ RSS](/packages/kumonko-qrcode/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

qrcode.php
==========

[](#qrcodephp)

### Generate QR Codes. MIT license.

[](#generate-qr-codes-mit-license)

This is a stripped down version of

Use from a PHP script:

```
use Kumonko\QRCode\QRCode;

$generator = new QRCode($data, $options);

/* Output directly to standard output. */
$generator->output_image();

/* Create bitmap image. */
$image = $generator->render_image();
imagepng($image);
imagedestroy($image);

/* Show base64 image in HTML */
$image = imagepng($generator->render_image());
echo "";

```

#### Options:

[](#options)

`s` - Symbology (type of QR code). One of:

```
    qr
    qr-l
    qr-m
    qr-q
    qr-h

```

`d` - Data. Encode in Shift-JIS for kanji mode.

`w` - Width of image. Overrides `sf` or `sx`.

`h` - Height of image. Overrides `sf` or `sy`.

`sf` - Scale factor. Default is 4.

`sx` - Horizontal scale factor. Overrides `sf`.

`sy` - Vertical scale factor. Overrides `sf`.

`p` - Padding. Default is 0.

`pv` - Top and bottom padding. Default is value of `p`.

`ph` - Left and right padding. Default is value of `p`.

`pt` - Top padding. Default is value of `pv`.

`pl` - Left padding. Default is value of `ph`.

`pr` - Right padding. Default is value of `ph`.

`pb` - Bottom padding. Default is value of `pv`.

`bc` - Background color in `#RRGGBB` format.

`fc` - Foreground color in `#RRGGBB` format.

`md` - Module density. A number between 0 and 1. Default is 1.

`wq` - Width of quiet area units. Default is 1. Use 0 to suppress quiet area.

`wm` - Width of narrow modules and spaces. Default is 1.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

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

---

Top Contributors

[![KuMoNKo](https://avatars.githubusercontent.com/u/13924059?v=4)](https://github.com/KuMoNKo "KuMoNKo (6 commits)")[![psyon](https://avatars.githubusercontent.com/u/395202?v=4)](https://github.com/psyon "psyon (1 commits)")

### Embed Badge

![Health badge](/badges/kumonko-qrcode/health.svg)

```
[![Health](https://phpackages.com/badges/kumonko-qrcode/health.svg)](https://phpackages.com/packages/kumonko-qrcode)
```

###  Alternatives

[chrismallory/module-freeshipping-progress-bar

Display a progress bar on the shopping cart based on order total to encourage users to spend more to get free shipping

4915.4k](/packages/chrismallory-module-freeshipping-progress-bar)[corneltek/universal

Universal library for PHP

14146.3k5](/packages/corneltek-universal)[webparking/nova-belongs-to-dependency

Extended Laravel Nova BelongsTo field that can depend on other fields

1157.8k](/packages/webparking-nova-belongs-to-dependency)[professional-wiki/modern-timeline

Adds a modern timeline visualization as Semantic MediaWiki result format

1820.8k1](/packages/professional-wiki-modern-timeline)

PHPackages © 2026

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