henryejemuta/php-vtpass-vtu
最新稳定版本:v0.0.1
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.
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
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-25