PHPackages                             henryejemuta/php-vtpass-vtu - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. henryejemuta/php-vtpass-vtu

ActiveLibrary[API Development](/categories/api)

henryejemuta/php-vtpass-vtu
===========================

A PHP package for integrating with the VTpass VTU API.

v0.0.2(3mo ago)040MITPHPPHP ^7.4 || ^8.0CI passing

Since Dec 25Pushed 3mo agoCompare

[ Source](https://github.com/henryejemuta/php-vtpass-vtu)[ Packagist](https://packagist.org/packages/henryejemuta/php-vtpass-vtu)[ RSS](/packages/henryejemuta-php-vtpass-vtu/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (8)Versions (3)Used By (0)

PHP VTpass VTU Client
=====================

[](#php-vtpass-vtu-client)

[![Run Tests](https://github.com/henryejemuta/php-vtpass-vtu/actions/workflows/run-tests.yml/badge.svg)](https://github.com/henryejemuta/php-vtpass-vtu/actions/workflows/run-tests.yml)[![Latest Stable Version](https://camo.githubusercontent.com/a3189533df71391af64a48053f88b54ae609d2885e155eaaf8f6fe07863bc0ac/68747470733a2f2f706f7365722e707567782e6f72672f68656e7279656a656d7574612f7068702d7674706173732d7674752f762f737461626c65)](https://packagist.org/packages/henryejemuta/php-vtpass-vtu)[![Total Downloads](https://camo.githubusercontent.com/9a1bf51019d460047b6f922e82285dff80d4622858ec0e66257b044cd7186af6/68747470733a2f2f706f7365722e707567782e6f72672f68656e7279656a656d7574612f7068702d7674706173732d7674752f646f776e6c6f616473)](https://packagist.org/packages/henryejemuta/php-vtpass-vtu)[![License](https://camo.githubusercontent.com/44ccb6c7e838cb1621938c9b1b748f9beefcd4c8771df400387c26652002ab73/68747470733a2f2f706f7365722e707567782e6f72672f68656e7279656a656d7574612f7068702d7674706173732d7674752f6c6963656e7365)](https://packagist.org/packages/henryejemuta/php-vtpass-vtu)[![Quality Score](https://camo.githubusercontent.com/9e925ee91e148bd16adc7ddca79cd0cb958cc65f2b99125660a0480b10a96a7b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f68656e7279656a656d7574612f7068702d7674706173732d7674752e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/henryejemuta/php-vtpass-vtu)

A PHP package for integrating with the [VTpass API](https://www.vtpass.com/documentation/). This package allows you to easily purchase airtime, data, electricity, and other services provided by VTpass.

Whitelist Products
------------------

[](#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:

[](#steps-on-how-to-whitelist-products)

- To whitelist products for:
    1. The live environment, go to your [VTpass profile here](https://vtpass.com/account).
    2. The Sandbox environment, go to your [Sandbox profile here](https://sandbox.vtpass.com/account).
- 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
------------------

[](#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!

1. **Create Live Account**: The next step is to create a live account [here](https://www.vtpass.com/).
2. **Request Access**: After creating a live account, you need to request API access by clicking [here](https://www.vtpass.com/request-api-access) (you need to be logged in to your live account before you can access this).
3. **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.
4. **Submit**: Once done, click on submit.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require henryejemuta/php-vtpass-vtu
```

Usage
-----

[](#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
-------------

[](#documentation)

For full API documentation, please visit the [VTpass API Documentation](https://www.vtpass.com/documentation/).

Testing
-------

[](#testing)

```
composer test
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance79

Regular maintenance activity

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~78 days

Total

2

Last Release

112d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/54673a3d375309540e1831b2827b8bf499d048dfe3cdb56193cf575c4105d85f?d=identicon)[henryejemuta](/maintainers/henryejemuta)

---

Top Contributors

[![henryejemuta](https://avatars.githubusercontent.com/u/13375596?v=4)](https://github.com/henryejemuta "henryejemuta (10 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/henryejemuta-php-vtpass-vtu/health.svg)

```
[![Health](https://phpackages.com/badges/henryejemuta-php-vtpass-vtu/health.svg)](https://phpackages.com/packages/henryejemuta-php-vtpass-vtu)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M987](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
