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

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

reyesoft/crypto-qr
==================

This library helps to generate QR codes for Crypto Address

2.1.0(4mo ago)652.5k↑12.5%3[1 PRs](https://github.com/reyesoft/crypto-qr/pulls)MITPHPPHP ^8.4CI failing

Since Aug 22Pushed 4mo ago4 watchersCompare

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

READMEChangelog (5)Dependencies (5)Versions (18)Used By (0)

Crypto-QR
=========

[](#crypto-qr)

*By [Reyesoft](http://reyesoft.com/)*

This library helps you generate QR codes for Crypto Address. Makes use of [endroid/qr-code](https://github.com/endroid/qr-code). Further extended with Twig extensions, generation routes, a factory and a

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

[](#installation)

Use [Composer](https://getcomposer.org/) to install the library.

```
$ composer require reyesoft/crypto-qr
```

Basic usage
-----------

[](#basic-usage)

```
use Reyesoft\CryptoQr\BitcoinQr;

$qr = new BitcoinQr('3PrCdjyjcDHDSC8tvVgx1u96tMK9juncHs');

header('Content-Type: '.$qr->getQrCode()->getContentType());
echo $qr->getQrCode()->writeString();
```

Advanced usage
--------------

[](#advanced-usage)

```
use Reyesoft\CryptoQr\BitcoinQr;

// Create a basic QR code
$qr = new BitcoinQr('3PrCdjyjcDHDSC8tvVgx1u96tMK9juncHs');
$qr->getQrCode()->setSize(300);
$qr->setAmount(0.01);
$qr->setLabel('Caritas');
$qr->setMessage('Donation for project Maria');

// Directly output the QR code
header('Content-Type: '.$qr->getQrCode()->getContentType());
echo $qr->getQrCode()->writeString();

// Save it to a file
$qr->getQrCode()->writeFile(__DIR__.'/qrcode.png');
```

`getQrCode()` return a instance of `Endroid\QrCode\QrCode`, then you have more options for your QR on [endroid/qr-code](https://github.com/endroid/qr-code/blob/master/README.md#advanced-usage).

[![bitcoin qr](https://user-images.githubusercontent.com/938894/44047859-1c4b94b0-9f06-11e8-85d7-ea7d3728691c.png "Bitcoin QR generated with BitcoinQr library")](https://user-images.githubusercontent.com/938894/44047859-1c4b94b0-9f06-11e8-85d7-ea7d3728691c.png)

Testing
-------

[](#testing)

```
composer test
sh autofix.sh
```

### PHP 8.4

[](#php-84)

```
docker run -it --rm --name php84 -e PHP_EXTENSIONS="gd" -v "$PWD":/usr/src/app thecodingmachine/php:8.4-v4-cli bash
```

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance74

Regular maintenance activity

Popularity36

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 52.6% 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 ~671 days

Total

5

Last Release

140d ago

Major Versions

0.1.1 → 2.0.02024-12-05

PHP version history (4 changes)0.0.1PHP &gt;=7.1

0.1.1PHP ^7.3|^8.0

2.0.0PHP ^8.1

2.1.0PHP ^8.4

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/91fa77a75883443c10416ee42482c41cf751d16b064ebfa3c4cbead8e36e59c0?d=identicon)[jagannath23](/maintainers/jagannath23)

---

Top Contributors

[![ahumadamatias](https://avatars.githubusercontent.com/u/49443249?v=4)](https://github.com/ahumadamatias "ahumadamatias (20 commits)")[![juanicastellan0](https://avatars.githubusercontent.com/u/37382853?v=4)](https://github.com/juanicastellan0 "juanicastellan0 (9 commits)")[![pablorsk](https://avatars.githubusercontent.com/u/938894?v=4)](https://github.com/pablorsk "pablorsk (9 commits)")

---

Tags

qrcodebitcoinreyesoftcrypto address

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[endroid/qr-code

Endroid QR Code

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

Simple QrCode is a QR code generator made for Laravel.

2.9k27.6M92](/packages/simplesoftwareio-simple-qrcode)[chillerlan/php-qrcode

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

2.4k28.9M208](/packages/chillerlan-php-qrcode)[bitcoin-php/bitcoin-ecdsa

PHP library allowing to generate BTC addresses from private keys

23062.6k7](/packages/bitcoin-php-bitcoin-ecdsa)[amirezaeb/heroqr

A Powerful QR Code Management Library For PHP

9510.3k](/packages/amirezaeb-heroqr)[bitgrave/barcode-bundle

provide barcode rendering service into your Symfony2 application.

25444.0k1](/packages/bitgrave-barcode-bundle)

PHPackages © 2026

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