定制 henryejemuta/php-peyflex-vtu 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

henryejemuta/php-peyflex-vtu

最新稳定版本:v0.0.1

Composer 安装命令:

composer require henryejemuta/php-peyflex-vtu

包简介

A PHP package for integrating with the Peyflex VTU API.

README 文档

README

Run Tests Latest Stable Version Total Downloads License Quality Score

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

  • 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

You can install the package via composer:

composer require henryejemuta/php-peyflex-vtu

Usage

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

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

print_r($response);

Data Purchase

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

print_r($response);

Testing

composer test

License

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

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-25