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

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

esyede/tiny-qrcode
==================

A tiny QRCode generator (single file, no dependencies)

v1.0.0(3y ago)2152MITPHPPHP &gt;=5.4.0

Since Dec 8Pushed 3y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

tiny-qrcode
===========

[](#tiny-qrcode)

[![screenshot](screenshot.png)](screenshot.png)

A tiny QR Code generator (single file, no dependencies)

Requirements:
-------------

[](#requirements)

- PHP 5.4 or newer
- PHP-GD exntension

Install
-------

[](#install)

Via composer:

```
composer require esyede/tiny-qrcode
```

Manual install:

1. Download the archive from the [release page](https://github.com/esyede/tiny-qrcode/releases/latest)
2. Extract the downloaded archive file

Load file
---------

[](#load-file)

```
require 'vendor/autoload.php'; // via composer

require 'path/to/TinyQRCode.php'; // manual
```

Display image
-------------

[](#display-image)

```
$data = 'https://github.com/esyede/tiny-qrcode';

$qr = new \Esyede\TinyQRCode\TinyQRCode($data);
$qr->display();
```

Save image
----------

[](#save-image)

```
$data = 'https://github.com/esyede/tiny-qrcode';

$qr = new \Esyede\TinyQRCode\TinyQRCode($data);
$qr->store('path/to/store/qr.png');
```

Adjust QRCode options
---------------------

[](#adjust-qrcode-options)

### Altering the error correction level

[](#altering-the-error-correction-level)

```
$data = 'https://github.com/esyede/tiny-qrcode';
$options = ['errorCorrectionLevel' => 'H'];

$qr = new \Esyede\TinyQRCode\TinyQRCode($data, $options);
$qr->display();
```

**Available error correction levels:**

CodeCorrection Level`L`7%`M`15% (default)`Q`25%`H`30%### Changing the image size

[](#changing-the-image-size)

The size of the generated QR image can be adjusted as follows. This does not affect error correction or similar.

```
$data = 'https://github.com/esyede/tiny-qrcode';
$options = ['imageSize' => 30];

$qr = new \Esyede\TinyQRCode\TinyQRCode($data, $options);
$qr->display();
```

### Changing the code version

[](#changing-the-code-version)

The version of the QR code can be altered by passing options to the constructor. Note that in most cases this will result in an increase in image size.

```
$data = 'https://github.com/esyede/tiny-qrcode';
$options = ['version' => 5]; // range: 1 - 40

$qr = new \Esyede\TinyQRCode\TinyQRCode($data, $options);
$qr->display();
```

Possible option lists:
----------------------

[](#possible-option-lists)

KeyTypeDescription`'version'`integerSet QR Code version`'imageSize'`integerSet output image size`'errorCorrectionLevel'`stringSet error correction level`'dataPath'`stringSet custom stub data folder`'imagesPath'`stringSet custom stub images folderLicense
-------

[](#license)

Released under the [MIT License](https://github.com/esyede/tiny-qrcode/LICENSE)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

1257d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10582583?v=4)[Suyadi](/maintainers/esyede)[@esyede](https://github.com/esyede)

---

Top Contributors

[![esyede](https://avatars.githubusercontent.com/u/10582583?v=4)](https://github.com/esyede "esyede (10 commits)")

---

Tags

phpqr-codeqrcodeqrcode-generatorphpqr codeqrcodeqr

### Embed Badge

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

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

###  Alternatives

[endroid/qr-code

Endroid QR Code

4.8k67.6M348](/packages/endroid-qr-code)[chillerlan/php-qrcode

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

2.4k28.9M208](/packages/chillerlan-php-qrcode)[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)
