henryejemuta/php-clubkash-vtu
Composer 安装命令:
composer require henryejemuta/php-clubkash-vtu
包简介
A PHP package for integrating with the ClubKash VTU API.
README 文档
README
A robust PHP package for integrating with the ClubKash (Nellobytes Systems) VTU API. This package allows you to easily purchase airtime, data, cable TV, and electricity tokens.
Features
- Airtime Purchase: Buy airtime for all major Nigerian networks.
- Data Purchase: Buy data bundles for all major Nigerian networks.
- Cable TV Subscription: Subscribe to DSTV, GOTV, and Startimes.
- Electricity Bill Payment: Pay for prepaid and postpaid electricity meters.
- Wallet Balance: Check your wallet balance.
- Universal Compatibility: Works with Laravel, CodeIgniter, Symfony, and raw PHP projects.
Installation
You can install the package via composer:
composer require henryejemuta/php-clubkash-vtu
Usage
Initialization
To start using the package, initialize the Client with your UserID, API Key, and optional configuration.
You can also pass an existing token if available to skip initial authentication.
use HenryEjemuta\Clubkash\Client; $config = [ 'timeout' => 30, ]; $client = new Client('YOUR_USER_ID', 'YOUR_API_KEY', $config);
Check Wallet Balance
try { $balance = $client->getWalletBalance(); print_r($balance); } catch (\Exception $e) { echo "Error: " . $e->getMessage(); }
Airtime Purchase
// Network Codes: 01=MTN, 02=GLO, 03=9Mobile, 04=Airtel $response = $client->purchaseAirtime('01', 100.00, '08012345678'); print_r($response);
Data Purchase
// Data Plan Code: Get from ClubKash Documentation or use verify tool $response = $client->purchaseData('01', 'DATA_PLAN_CODE', '08012345678'); print_r($response);
Cable TV Subscription
// CableTV: 'dstv', 'gotv', 'startimes' $response = $client->purchaseCableTV('dstv', 'package_code', 'IUC_NUMBER', 'PHONE_NUMBER'); print_r($response);
Electricity Payment
// ElectricCompany: '01', '02', etc. MeterType: '01' (Prepaid), '02' (Postpaid) $response = $client->purchaseElectricity('01', 'METER_NUMBER', '01', 1000.00, 'PHONE_NUMBER'); print_r($response);
API Documentation
For full API documentation, please refer to the Nellobytes Systems API.
Testing
composer test
License
The MIT License (MIT). Please see License File for more information.
henryejemuta/php-clubkash-vtu 适用场景与选型建议
henryejemuta/php-clubkash-vtu 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 41 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 12 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 henryejemuta/php-clubkash-vtu 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 henryejemuta/php-clubkash-vtu 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 41
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-25