bionyxxx/digiflazz
Composer 安装命令:
composer require bionyxxx/digiflazz
包简介
Laravel Digiflazz Client
README 文档
README
This package will handle laravel integration to Digiflazz. Just provide the credentials and we will take care the rest.
Before using this package we highly recommend reading the entire documentation on Digiflazz
Installation
Since we are using Guzzle 7.0, you need to make sure guzzlehttp/guzzle in your composer.json is at least ^7.0.
You can install the package via composer:
composer require svakode/svaflazz
The service provider will automatically register itself.
You must publish the config file with:
php artisan vendor:publish --provider="Svakode\Svaflazz\SvaflazzServiceProvider"
This is the contents of the config file that will be published at config/svaflazz.php:
return [ /* * Digiflazz will require you to request username and key * these will be used for making a request to digiflazz */ 'username' => env('DIGIFLAZZ_USERNAME'), 'key' => env('DIGIFLAZZ_KEY'), /* * Digiflazz Base URL */ 'base_url' => env('DIGIFLAZZ_BASE_URL', 'https://api.digiflazz.com/v1'), ];
Usage
Digiflazz have several features which we supported, these features are:
Check Balance
This feature is for retrieving the balance of the user
Svaflazz::checkBalance();
Deposit
This feature is for creating a deposit ticket to Digiflazz, in this feature you need to provide us:
| Parameter | Required | Description |
|---|---|---|
| amount | yes | Deposit amount |
| bank | yes | Bank name |
| owner_name | yes | Owner name for the bank account |
Svaflazz::deposit($amount, $bank, $owner_name);
Price List
This feature is for retrieving the price list in Digiflazz.
Svaflazz::priceList();
Alternatively, you can also pass your buyer_sku_code as an optional parameter to get the price for that code.
Svaflazz::priceList($buyer_sku_code);
Topup
This feature is for doing a prepaid transaction in Digiflazz. you need to provide us
| Parameter | Required | Description |
|---|---|---|
| buyer_sku_code | yes | Product SKU |
| customer_no | yes | Customer number |
| ref_id | yes | Reference ID |
| msg | no | Transaction message |
Svaflazz::topup($buyer_sku_code, $customer_no, $ref_id);
Check Bill
This feature is for checking whether postpaid bill already issued in Digiflazz. you need to provide us
| Parameter | Required | Description |
|---|---|---|
| buyer_sku_code | yes | Product SKU |
| customer_no | yes | Customer number |
| ref_id | yes | Reference ID |
Svaflazz::checkBill($buyer_sku_code, $customer_no, $ref_id);
Pay Bill
This feature is for paying a postpaid bill in Digiflazz. you need to provide us
| Parameter | Required | Description |
|---|---|---|
| buyer_sku_code | yes | Product SKU |
| customer_no | yes | Customer number |
| ref_id | yes | Reference ID |
Svaflazz::payBill($buyer_sku_code, $customer_no, $ref_id);
Check Status Bill
This feature is for checking the payment status of a postpaid bill in Digiflazz. you need to provide us
| Parameter | Required | Description |
|---|---|---|
| buyer_sku_code | yes | Product SKU |
| customer_no | yes | Customer number |
| ref_id | yes | Reference ID |
Svaflazz::checkStatusBill($buyer_sku_code, $customer_no, $ref_id);
Inquiry PLN
This feature is for inquiring PLN bill in Digiflazz. you need to provide us
| Parameter | Required | Description |
|---|---|---|
| customer_no | yes | Customer number |
Svaflazz::inquiryPLN($customer_no);
Artisan Command
Too lazy to make a system? We got you covered. We provide Artisan Command for you to do a topup using
php artisan svaflazz:topup
You will be prompted to input buyer_sku_code, customer_no, and ref_id.
Exception Handling
In case of Request Exception which can be happened due to various reason we will throw SvaflazzException which will
accommodate the message and rc given by Digiflazz.
Changelog
Please see CHANGELOG for more information about what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
bionyxxx/digiflazz 适用场景与选型建议
bionyxxx/digiflazz 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 10 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 09 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「svakode」 「digiflazz」 「svaflazz」 「laravel-digiflazz」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 bionyxxx/digiflazz 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 bionyxxx/digiflazz 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 bionyxxx/digiflazz 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Laravel Digiflazz Client
Unofficial laravel package for integrating Digiflazz API (Buyer)
Laravel Digiflazz Client
Modern PHP client for Digiflazz API - Prepaid, Postpaid, PLN, and more
Laravel SDK for DigiFlazz API - Professional wrapper for DigiFlazz payment gateway
Laravel integration for the Gonon Digiflazz SDK
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-09-13