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

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

liveecommerce/php-qrcode
========================

Fork from A QR code generator. PHP 7.4+

4.3.1(5y ago)05MITPHPPHP ^7.4 || ^8.0

Since Dec 24Pushed 5y agoCompare

[ Source](https://github.com/liveecommerce/php-qrcode)[ Packagist](https://packagist.org/packages/liveecommerce/php-qrcode)[ Docs](https://github.com/chillerlan/php-qrcode)[ Fund](https://www.paypal.com/donate?hosted_button_id=WLYUNAT9ZTJZ4)[ Fund](https://ko-fi.com/codemasher)[ RSS](/packages/liveecommerce-php-qrcode/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (4)Versions (34)Used By (0)

chillerlan/php-qrcode
=====================

[](#chillerlanphp-qrcode)

A PHP 7.4+ QR Code library based on the [implementation](https://github.com/kazuhikoarase/qrcode-generator) by [Kazuhiko Arase](https://github.com/kazuhikoarase), namespaced, cleaned up, improved and other stuff.

[![PHP Version Support](https://camo.githubusercontent.com/04d1187595485712e2c4f20b2053b513481e324716db882a873b576b9ed0e44d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6368696c6c65726c616e2f7068702d7172636f64653f6c6f676f3d70687026636f6c6f723d383839324246)](https://www.php.net/supported-versions.php)[![Packagist version](https://camo.githubusercontent.com/e4d9b48ddce7416e0a89ef4a2cfed653281886e756620f12b7b8579893c36783/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368696c6c65726c616e2f7068702d7172636f64652e737667)](https://packagist.org/packages/chillerlan/php-qrcode)[![License](https://camo.githubusercontent.com/fe9cc17a4c8d8cce816966a554657646015be9bc9458a00b616707f0e0c4980d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6368696c6c65726c616e2f7068702d7172636f64652e737667)](https://github.com/chillerlan/php-qrcode/blob/main/LICENSE)[![Travis CI](https://camo.githubusercontent.com/85fae2def06853cb12bc6c41b59be29a5f501ef39494754665cc768d83e51fa9/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636f6d2f6368696c6c65726c616e2f7068702d7172636f64652f6d61696e3f6c6f676f3d747261766973)](https://travis-ci.com/github/chillerlan/php-qrcode)[![CodeCov](https://camo.githubusercontent.com/7bff398040a322926ed0784547c0ad6489823a8487f835e5433a434eef87609d/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6368696c6c65726c616e2f7068702d7172636f64652e7376673f6c6f676f3d636f6465636f76)](https://codecov.io/github/chillerlan/php-qrcode)[![Scrunitizer CI](https://camo.githubusercontent.com/a96b936456a254619bfaf5260815103b7464adfb03ca6a31c26109d954e5cae7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6368696c6c65726c616e2f7068702d7172636f64652e7376673f6c6f676f3d7363727574696e697a6572)](https://scrutinizer-ci.com/g/chillerlan/php-qrcode)[![Packagist downloads](https://camo.githubusercontent.com/217e2af06a1812b4d807b06b259dd6d3221a158c04f4661d857f027945457ed4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6368696c6c65726c616e2f7068702d7172636f64652e737667)](https://packagist.org/packages/chillerlan/php-qrcode/stats)
[![Continuous Integration](https://github.com/chillerlan/php-qrcode/workflows/Continuous%20Integration/badge.svg)](https://github.com/chillerlan/php-qrcode/actions?query=workflow%3A%22Continuous+Integration%22)[![phpDocs](https://github.com/chillerlan/php-qrcode/workflows/Docs/badge.svg)](https://github.com/chillerlan/php-qrcode/actions?query=workflow%3ADocs)

Documentation
-------------

[](#documentation)

See [the wiki](https://github.com/chillerlan/php-qrcode/wiki) for advanced documentation. An API documentation created with [phpDocumentor](https://www.phpdoc.org/) can be found at  (WIP).

### Requirements

[](#requirements)

- PHP 7.4+
    - `ext-mbstring`
    - optional:
        - `ext-json`, `ext-gd`
        - `ext-imagick` with [ImageMagick](https://imagemagick.org) installed
        - [`setasign/fpdf`](https://github.com/setasign/fpdf) for the PDF output module

### Installation

[](#installation)

**requires [composer](https://getcomposer.org)**

via terminal: `composer require chillerlan/php-qrcode`

*composer.json*

```
{
	"require": {
		"php": "^7.4",
		"chillerlan/php-qrcode": "dev-main"
	}
}
```

Note: replace `dev-main` with a [version constraint](https://getcomposer.org/doc/articles/versions.md#writing-version-constraints), e.g. `^3.2` - see [releases](https://github.com/chillerlan/php-qrcode/releases) for valid versions. For PHP version ...

- 7.4+ use `^4.2`
- 7.2+ use `^3.3`
- 7.0+ use `^2.0` (PHP 7.0 and 7.1 are EOL!)
- 5.6+ use `^1.0` (please let PHP 5 die!)

### Quickstart

[](#quickstart)

We want to encode this URI for a mobile authenticator into a QRcode image:

```
$data = 'otpauth://totp/test?secret=B3JX4VCVJDVNXNZ5&issuer=chillerlan.net';

// quick and simple:
echo '';
```

 [![QR codes are awesome!](https://raw.githubusercontent.com/chillerlan/php-qrcode/main/examples/example_image.png)](https://raw.githubusercontent.com/chillerlan/php-qrcode/main/examples/example_image.png) [![QR codes are awesome!](https://raw.githubusercontent.com/chillerlan/php-qrcode/main/examples/example_svg.png)](https://raw.githubusercontent.com/chillerlan/php-qrcode/main/examples/example_svg.png)

Wait, what was that? Please again, slower! See [Advanced usage](https://github.com/chillerlan/php-qrcode/wiki/Advanced-usage) on the wiki.

### Framework Integration

[](#framework-integration)

- Drupal [Google Authenticator Login `ga_login`](https://www.drupal.org/project/ga_login)
- WordPress [`wp-two-factor-auth`](https://github.com/sjinks/wp-two-factor-auth)
- WordPress [Simple 2FA `simple-2fa`](https://wordpress.org/plugins/simple-2fa/)
- WoltLab Suite [two-step-verification](http://pluginstore.woltlab.com/file/3007-two-step-verification/)
- [Cachet](https://github.com/CachetHQ/Cachet)
- [Appwrite](https://github.com/appwrite/appwrite)
- other uses: [dependents](https://github.com/chillerlan/php-qrcode/network/dependents) / [packages](https://github.com/chillerlan/php-qrcode/network/dependents?dependent_type=PACKAGE)

### Shameless advertising

[](#shameless-advertising)

Hi, please check out my other projects that are way cooler than qrcodes!

- [php-oauth-core](https://github.com/chillerlan/php-oauth-core) - an OAuth 1/2 client library along with a bunch of [providers](https://github.com/chillerlan/php-oauth-providers)
- [php-httpinterface](https://github.com/chillerlan/php-httpinterface) - a PSR-7/15/17/18 implemetation
- [php-database](https://github.com/chillerlan/php-database) - a database client &amp; querybuilder for MySQL, Postgres, SQLite, MSSQL, Firebird

### Disclaimer!

[](#disclaimer)

I don't take responsibility for molten CPUs, misled applications, failed log-ins etc.. Use at your own risk!

#### Trademark Notice

[](#trademark-notice)

The word "QR Code" is registered trademark of *DENSO WAVE INCORPORATED*

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 98% 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 ~39 days

Total

32

Last Release

1840d ago

Major Versions

2.0.7 → 3.2.22020-04-05

3.2.2 → 4.0.02020-04-06

1.0.9 → 3.3.02020-06-04

3.3.0 → 4.1.02020-06-04

v3.2.x-dev → v5.x-dev2021-01-25

PHP version history (5 changes)2.0.0PHP &gt;=7.0.3

1.0.8PHP &gt;=5.6.0

3.0.0PHP ^7.2

4.0.0PHP ^7.4

4.2.0PHP ^7.4 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![codemasher](https://avatars.githubusercontent.com/u/592497?v=4)](https://github.com/codemasher "codemasher (487 commits)")[![MaximilianKresse](https://avatars.githubusercontent.com/u/545671?v=4)](https://github.com/MaximilianKresse "MaximilianKresse (5 commits)")[![joshstoik1](https://avatars.githubusercontent.com/u/403248?v=4)](https://github.com/joshstoik1 "joshstoik1 (2 commits)")[![darthmaim](https://avatars.githubusercontent.com/u/2511547?v=4)](https://github.com/darthmaim "darthmaim (1 commits)")[![feijaocosta](https://avatars.githubusercontent.com/u/10297839?v=4)](https://github.com/feijaocosta "feijaocosta (1 commits)")[![kmvan](https://avatars.githubusercontent.com/u/3839554?v=4)](https://github.com/kmvan "kmvan (1 commits)")

---

Tags

qr codeqrcodeqrphpqrcodeqrcode-generator

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[chillerlan/php-qrcode

A QR Code generator and reader with a user-friendly API. PHP 8.4+

2.4k28.9M208](/packages/chillerlan-php-qrcode)[endroid/qr-code

Endroid QR Code

4.8k67.6M348](/packages/endroid-qr-code)[amirezaeb/heroqr

A Powerful QR Code Management Library For PHP

9510.3k](/packages/amirezaeb-heroqr)[arcanedev/qr-code

QR Code generator

1231.9k1](/packages/arcanedev-qr-code)[devtical/nova-qrcode-field

Nova QR code field

4560.6k2](/packages/devtical-nova-qrcode-field)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

295.1k](/packages/linkxtr-laravel-qrcode)

PHPackages © 2026

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