henryejemuta/php-vtpass-vtu

A PHP package for integrating with the VTpass VTU API.

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/henryejemuta/php-vtpass-vtu

v0.0.1 2025-12-25 13:15 UTC

This package is auto-updated.

Last update: 2025-12-26 00:32:13 UTC


README

Run Tests Latest Stable Version Total Downloads License Quality Score

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