henryejemuta/php-vtpass-vtu
Composer 安装命令:
composer require henryejemuta/php-vtpass-vtu
包简介
A PHP package for integrating with the VTpass VTU API.
README 文档
README
A PHP package for integrating with the VTpass API. This package allows you to easily purchase airtime, data, electricity, and other services provided by VTpass.
Whitelist Products
Although you have access to all VTpass products, they are disabled by default. To start selling specific products, you must whitelist them first. Whitelisting allows you to activate only the products you intend to offer through your integration. Follow the steps below to whitelist your desired products and enable them for vending.
Steps on how to whitelist products:
- To whitelist products for:
- The live environment, go to your VTpass profile here.
- The Sandbox environment, go to your Sandbox profile here.
- Click on the Product Settings tab on your profile page.
- Check the products you would like to vend and click the submit button
Request API Access
Now that you have gone through the documentation and all necessary tests done on the test environment, you are almost ready to go live!
- Create Live Account: The next step is to create a live account here.
- Request Access: After creating a live account, you need to request API access by clicking here (you need to be logged in to your live account before you can access this).
- Fill Form: Fill the form on the page and check the service(s) integrated. Note: You will be required to input the request ID of a successful integration.
- Submit: Once done, click on submit.
Installation
You can install the package via composer:
composer require henryejemuta/php-vtpass-vtu
Usage
use HenryEjemuta\Vtpass\Client; // Initialize the client // For Live Environment $client = new Client('your-api-key', 'your-public-key', 'your-secret-key'); // For Sandbox Environment $client = new Client('your-api-key', 'your-public-key', 'your-secret-key', [ 'sandbox' => true ]); // Get Service Categories $categories = $client->getServiceCategories(); // Purchase Airtime $response = $client->purchaseAirtime('mtn', 100, '08012345678'); // Purchase Data $response = $client->purchaseData('mtn-data', '08012345678', 'sme-month-1GB', 300);
Documentation
For full API documentation, please visit the VTpass API Documentation.
Testing
composer test
henryejemuta/php-vtpass-vtu 适用场景与选型建议
henryejemuta/php-vtpass-vtu 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 39 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 12 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 henryejemuta/php-vtpass-vtu 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 henryejemuta/php-vtpass-vtu 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-25