PHPackages                             henryejemuta/php-peyflex-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-peyflex-vtu

ActiveLibrary[API Development](/categories/api)

henryejemuta/php-peyflex-vtu
============================

A PHP package for integrating with the Peyflex VTU API.

v0.0.1(4mo ago)022MITPHPPHP ^7.4 || ^8.0CI passing

Since Dec 25Pushed 4mo agoCompare

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

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

Peyflex VTU CSV PHP Package
===========================

[](#peyflex-vtu-csv-php-package)

[![Run Tests](https://github.com/henryejemuta/php-peyflex-vtu/actions/workflows/run-tests.yml/badge.svg)](https://github.com/henryejemuta/php-peyflex-vtu/actions/workflows/run-tests.yml)[![Latest Stable Version](https://camo.githubusercontent.com/b4817b1193d56e2b77d97320e1f73d281701ec2f9d94dc925ac5c1eaa25f3c9f/68747470733a2f2f706f7365722e707567782e6f72672f68656e7279656a656d7574612f7068702d706579666c65782d7674752f762f737461626c65)](https://packagist.org/packages/henryejemuta/php-peyflex-vtu)[![Total Downloads](https://camo.githubusercontent.com/cb1da1f89c669b7961846139c663176092272aa4c86cbce7f8c2a960021bb31e/68747470733a2f2f706f7365722e707567782e6f72672f68656e7279656a656d7574612f7068702d706579666c65782d7674752f646f776e6c6f616473)](https://packagist.org/packages/henryejemuta/php-peyflex-vtu)[![License](https://camo.githubusercontent.com/b47f9660c4354d92ffaaf1b21a7a1457d3a4b6674a8ce1350aaa89088054cbec/68747470733a2f2f706f7365722e707567782e6f72672f68656e7279656a656d7574612f7068702d706579666c65782d7674752f6c6963656e7365)](https://packagist.org/packages/henryejemuta/php-peyflex-vtu)[![Quality Score](https://camo.githubusercontent.com/89fe4c1539547620b2d491addfbe5dced3afde5e1ca3f0429e7ccb42a0b26757/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f68656e7279656a656d7574612f7068702d706579666c65782d7674752e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/henryejemuta/php-peyflex-vtu)

A robust PHP package for integrating with the Peyflex VTU API. This package allows you to easily purchase airtime, data, cable TV, and electricity tokens.

Features
--------

[](#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.
- **Universal Compatibility**: Works with Laravel, CodeIgniter, Symfony, and raw PHP projects.

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

[](#installation)

You can install the package via composer:

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

Usage
-----

[](#usage)

### Initialization

[](#initialization)

To start using the package, initialize the `Client` with your API token and optional configuration.

```
use HenryEjemuta\Peyflex\Client;

$config = [
    'base_url' => 'https://client.peyflex.com.ng/api/', // Optional: Defaults to live URL
    'timeout' => 30, // Optional: Request timeout in seconds
];

$client = new Client('YOUR_API_TOKEN', $config);
```

### Airtime Purchase

[](#airtime-purchase)

```
$response = $client->purchaseAirtime([
    'network' => 'mtn',
    'phone' => '08012345678',
    'amount' => 100
]);

print_r($response);
```

### Data Purchase

[](#data-purchase)

```
$response = $client->purchaseData([
    'network' => 'mtn_sme',
    'phone' => '08012345678',
    'plan' => '500MB'
]);

print_r($response);
```

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance75

Regular maintenance activity

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity29

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

Unknown

Total

1

Last Release

136d 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 (6 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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