reactmore/qiospay-sdk
Composer 安装命令:
composer require reactmore/qiospay-sdk
包简介
README 文档
README
This library provides QiosPay integration with the CodeIgniter 4 framework and standalone PHP projects. It helps manage data and APIs easily through Service Facade.
📑 Table of Contents
📦 Installation
- Install via Composer
composer require reactmore/qiospay-sdk
⚙️ ENV Configuration
Qiospay.merchantCode = '' Qiospay.apiKey = '' Qiospay.qrisString = '' # TODO For H2H: Qiospay.memberId = '' Qiospay.memberPin = '' Qiospay.memberPassword = ''
🚀 Usage
Get the service instance
$qiospay = service('qiospay'); $productsService = $qiospay->products();
Products Service
Get Products
$response = $productsService->getProduct([], 1); $data = $response->getData();
Example response:
array(
'kode' => 'BYRTSELQM',
'produk' => 'Telkomsel Omni',
'keterangan' => 'Bayar Telkomsel Combo Sakti',
'harga' => '2050',
'status' => '1',
...
)
Get Products with Filters
$filters = [ 'produk' => 'Telkomsel Omni', ]; $response = $productsService->getProduct($filters, 1); $data = $response->getData();
Example response:
| kode | produk | keterangan | harga | status |
|---|---|---|---|---|
| BYRTSELQM | Telkomsel Omni | Bayar Telkomsel Combo Sakti | 2050 | 1 |
| CEKTSELQM | Telkomsel Omni | Cek Harga Telkomsel Combo Sakti | 0 | 1 |
| LISTTSELQM | Telkomsel Omni | Cek List Telkomsel Combo Sakti | 0 | 1 |
Get Products with Callback
$dataFilter = function(array $products) { return array_filter($products, fn($item) => $item['harga'] > 0); }; $filters = [ 'produk' => 'Telkomsel Omni', ]; $response = $productsService->getProduct($filters, 1, $dataFilter); $data = $response->getData();
Filtered response:
| kode | produk | keterangan | harga | status |
|---|---|---|---|---|
| BYRTSELQM | Telkomsel Omni | Bayar Telkomsel Combo Sakti | 2050 | 1 |
Get Categories
$categoriesResponse = $productsService->getCategories(); $categories = $categoriesResponse->getData();
Other Methods
$response = $productsService->getProduct(); // Get product with optional page $response = $productsService->getAll(); // Get all products $response = $productsService->getCategories();// Get all categories
💳 Qris Service
Get Qris Mutation
$qrisService = $qiospay->qris(); $response = $qrisService->getMutation([], 1); $data = $response->getData();
Get Qris Mutation with Filters
$filters = [ 'amount' => 10000, ]; $response = $qrisService->getMutation($filters, 1); $data = $response->getData();
Generate Dynamic Qris
$response = $qrisService->generateDynamicQris([ 'amount' => 15000, 'note' => 'Order #12345' ]); $qrisData = $response->getData();
Accessing Qris Response
$data = $response->getData(); $fullArray = $response->toArray(); $asObject = $response->toObject(); $json = $response->toJson();
🌐 Usage in PHP (non CodeIgniter 4)
$qios = new QiosPayFacade([ 'merchantCode' => '', 'memberId' => '', 'memberPin' => '', 'memberPassword' => '', 'apiKey' => '', 'qrisString' => '', ]); $response = $qios->products()->getProduct([ 'produk' => 'Telkomsel Omni', ], 1);
reactmore/qiospay-sdk 适用场景与选型建议
reactmore/qiospay-sdk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 2, 最近一次更新时间为 2025 年 09 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 reactmore/qiospay-sdk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 reactmore/qiospay-sdk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-23