reyesoft / crypto-qr
This library helps to generate QR codes for Crypto Address
2.2.0
2026-10-15 22:19 UTC
Requires
- php: ^8.4
- ext-gd: *
- chillerlan/php-qrcode: ^5.0
Requires (Dev)
- codedungeon/phpunit-result-printer: 0.30.0
- khanamiryan/qrcode-detector-decoder: ^2.0
- phpunit/phpunit: ^9.1.5
- reyesoft/ci: 2.0.1
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-master
- 2.2.0
- 2.1.0
- 2.0.0
- 0.1.1
- 0.1.0
- 0.0.1
- dev-changed/qr-library-from-endroid-to-chillerlan
- dev-changed/php84-ready
- dev-changed/changed-version-endroid
- dev-changed/upgrade-qr-code-library
- dev-changed/change-ci-version
- dev-changed/adapt-qr-for-pix
- dev-fix/qr-without-protocol
- dev-feature/ethereum_address
- dev-github-workflows
- dev-upgrade/composer
- dev-ci-phpstan-coverage-add
- dev-circleci-config-update
- dev-circleci-config
This package is auto-updated.
Last update: 2026-10-30 04:32:17 UTC
README
By Reyesoft
This library generates PNG QR codes for cryptocurrency addresses using chillerlan/php-qrcode.
Installation
Use Composer to install the library.
$ composer require reyesoft/crypto-qr
Basic usage
use CryptoQr\BitcoinQr; $qr = new BitcoinQr('3PrCdjyjcDHDSC8tvVgx1u96tMK9juncHs'); header('Content-Type: image/png'); echo $qr->getString();
Advanced usage
use CryptoQr\BitcoinQr; // Create a basic QR code $qr = new BitcoinQr('3PrCdjyjcDHDSC8tvVgx1u96tMK9juncHs'); $qr->setSize(300); $qr->setAmount(0.01); $qr->setLabel('Caritas'); $qr->setMessage('Donation for project Maria'); // Directly output the QR code header('Content-Type: image/png'); echo $qr->getString(); // Save it to a file $qr->writeFile(__DIR__.'/qrcode.png');
Testing
composer test
sh autofix.sh
PHP 8.4
docker run -it --rm --name php84 -e PHP_EXTENSIONS="gd" -v "$PWD":/usr/src/app thecodingmachine/php:8.4-v4-cli bash
