PHPackages                             cline/qr - 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. cline/qr

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

cline/qr
========

Standalone QR code generation and decoding package.

1.2.0(3mo ago)01.3kMITPHPPHP ^8.5.0

Since Mar 25Pushed 3mo agoCompare

[ Source](https://github.com/faustbrian/qr)[ Packagist](https://packagist.org/packages/cline/qr)[ RSS](/packages/cline-qr/feed)WikiDiscussions 1.x Synced 3w ago

READMEChangelog (3)Dependencies (6)Versions (5)Used By (0)

[![GitHub Workflow Status](https://github.com/faustbrian/qr/actions/workflows/quality-assurance.yaml/badge.svg)](https://github.com/faustbrian/qr/actions)[![Latest Version on Packagist](https://camo.githubusercontent.com/36143b41fc3c64aabd3f0f349f75e56d958855bbeed3d43c0f9c63f60b568d90/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c696e652f71722e737667)](https://packagist.org/packages/cline/qr)[![Software License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/0008f2b03d239de843fc2d2499d3505f056b2506bade7fc126d6eda13a272632/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c696e652f71722e737667)](https://packagist.org/packages/cline/qr)

---

qr
==

[](#qr)

`cline/qr` is a standalone QR code generation and decoding package. The repository keeps the Cline project skeleton for tooling and maintenance while the implementation and test coverage live directly in this package.

Requirements
------------

[](#requirements)

> **Requires [PHP 8.4+](https://php.net/releases/)**

Installation
------------

[](#installation)

```
composer require cline/qr
```

Usage
-----

[](#usage)

```
use Cline\Qr\Builder\Builder;
use Cline\Qr\Writer\PngWriter;

$result = new Builder(
    data: 'Hello world',
)
    ->withWriter(new PngWriter())
    ->build();

file_put_contents('qr.png', $result->getString());
```

Public immutable value objects also expose additive `with*` methods when you want to derive a modified copy without going back through the builder:

```
use Cline\Qr\Color\Color;
use Cline\Qr\QrCode;

$qrCode = (new QrCode('Hello world'))
    ->withSize(512)
    ->withMargin(4)
    ->withForegroundColor(new Color(12, 34, 56));
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please use the [GitHub security reporting form](https://github.com/faustbrian/qr/security) rather than the issue queue.

Credits
-------

[](#credits)

- [Brian Faust](https://github.com/faustbrian)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License. Please see [License File](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 91% of packages

Maintenance82

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Every ~0 days

Total

4

Last Release

90d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22145591?v=4)[Brian Faust](/maintainers/faustbrian)[@faustbrian](https://github.com/faustbrian)

---

Top Contributors

[![faustbrian](https://avatars.githubusercontent.com/u/22145591?v=4)](https://github.com/faustbrian "faustbrian (3 commits)")

---

Tags

php

### Embed Badge

![Health badge](/badges/cline-qr/health.svg)

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

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21422.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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