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

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

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

henryejemuta/php-peyflex-vtu

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('mtn', '08012345678', 100);

print_r($response);

Data Purchase

// Network identifier and plan code come from getDataNetworks() / getDataPlans()
$response = $client->purchaseData('mtn_data_share', '08012345678', 'M1GBS');

print_r($response);

Cable TV Subscription

// Verify the IUC/Smartcard first
$verify = $client->verifyCable('dstv', '1234567890');

// Then subscribe: provider, IUC, plan code, subscriber phone, amount
$response = $client->purchaseCable('dstv', '1234567890', 'premium', '08012345678', 5000);

print_r($response);

Electricity Bill Payment

// Verify the meter first
$verify = $client->verifyMeter('ikeja-electric', '1234567890', 'prepaid');

// Then pay: disco plan, meter, amount, type, subscriber phone
$response = $client->purchaseElectricity('ikeja-electric', '1234567890', 1000, 'prepaid', '08012345678');

print_r($response);

Testing

composer test

License

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

henryejemuta/php-peyflex-vtu 适用场景与选型建议

henryejemuta/php-peyflex-vtu 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 43 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 12 月 25 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 henryejemuta/php-peyflex-vtu 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 henryejemuta/php-peyflex-vtu 我们能提供哪些服务?
定制开发 / 二次开发

基于 henryejemuta/php-peyflex-vtu 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

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