bogiesoft/qr-payment
Composer 安装命令:
composer require bogiesoft/qr-payment
包简介
PHP Library to generate QR Code for QR-Payment and PromptPay
关键字:
README 文档
README
PHP Library to generate QR Code for QR-Payment and PromptPay
Requirement
- PHP 7.2+
- GD Extension (For Generate QR Code)
Composer
This package available on Packagist, Install the latest version with composer
composer require bogiesoft/qr-payment
Usage
# To generate PromptPay QR Code $promptpay = new bogiesoft\PromptPay(); // Grab parameter from URI // ?amount=99.25&targer=0810993011 $amount = $_GET['amount'] ?? 99.99; $target = $_GET['target'] ?? '0810993011'; // Display qrcode as PNG image $promptpay->generateQrCode($target, $amount); # To generate SCB QR-Payment $scb = new bogiesoft\ScbQr(); // Grab parameter from URI // ?amount=99.25&ref_1=CUST1100&ref_2=INV1001&billerId=0115311040039475101 $amount = $_GET['amount'] ?? 0; $ref_1 = $_GET['ref_1'] ?? 'none'; $ref_2 = $_GET['ref_2'] ?? 'none'; // Put &rawdata=yes to return rawdata $rawdata = $_GET['rawdata'] ?? 'no'; # '0115311040039475101'; // Biller ID TEST1 $billerId = $_GET['billerId'] ?? '0115311040039475101'; // Display qrcode as PNG image $scb->getqrcode($amount, $ref_1, $ref_2, $billerId);
Sample Generated PromptPay QR Code
Contributing
Feel free to contribute on this project, We'll be happy to work with you.
Donation
If this project help you reduce time to develop, you can give me a coffee one cup :)
License
This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code.
bogiesoft/qr-payment 适用场景与选型建议
bogiesoft/qr-payment 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 35 次下载、GitHub Stars 达 2, 最近一次更新时间为 2021 年 07 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Promptpay」 「QR-Payment」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 bogiesoft/qr-payment 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 bogiesoft/qr-payment 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 bogiesoft/qr-payment 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Library to generate QR Code payload for PromptPay
Generate PromptPay/TrueMoney/VietQR/PayMaya QRCode
PHP Library to generate QR Code payload for PromptPay
All-in-one PHP library for PromptPay & EMVCo QR Codes
PHP library for generating PAY by square payment QR codes
Thai PromptPay QR Code Payment Generator for Laravel
统计信息
- 总下载量: 35
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-07-05
