reyesoft/crypto-qr
Composer 安装命令:
composer require reyesoft/crypto-qr
包简介
This library helps to generate QR codes for Crypto Address
README 文档
README
By Reyesoft
This library helps you generate QR codes for Crypto Address. Makes use of endroid/qr-code. Further extended with Twig extensions, generation routes, a factory and a
Installation
Use Composer to install the library.
$ composer require reyesoft/crypto-qr
Basic usage
use Reyesoft\CryptoQr\BitcoinQr; $qr = new BitcoinQr('3PrCdjyjcDHDSC8tvVgx1u96tMK9juncHs'); header('Content-Type: '.$qr->getQrCode()->getContentType()); echo $qr->getQrCode()->writeString();
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.
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
reyesoft/crypto-qr 适用场景与选型建议
reyesoft/crypto-qr 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 59.49k 次下载、GitHub Stars 达 6, 最近一次更新时间为 2018 年 08 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「qrcode」 「bitcoin」 「reyesoft」 「crypto address」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 reyesoft/crypto-qr 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 reyesoft/crypto-qr 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 reyesoft/crypto-qr 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Library to fix common errors in php and keep a clean code
Based in http://phpqrcode.sourceforge.net/
The BlockTrail PHP SDK, for integration of Bitcoin functionality through the BlockTrail API
Symfony 4, 5, 6 ,7 Barcode Generator Bundle with Twig function extension
This library helps to make payments through MercadoPago, even with QR
Reactive Laravel Jobs
统计信息
- 总下载量: 59.49k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 28
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-23
