PHPackages                             onerecharge/onerecharge-php - 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. onerecharge/onerecharge-php

ActiveLibrary[API Development](/categories/api)

onerecharge/onerecharge-php
===========================

Onerecharge agents integration php library

24PHP

Since Oct 19Pushed 9y ago1 watchersCompare

[ Source](https://github.com/segsalerty2013/onerecharge-php)[ Packagist](https://packagist.org/packages/onerecharge/onerecharge-php)[ RSS](/packages/onerecharge-onerecharge-php/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Onerecharge PHP client library for Agent's integration for bill payments
========================================================================

[](#onerecharge-php-client-library-for-agents-integration-for-bill-payments)

- To know more about or become an Agent on Onerecharge, Visit [www.onerecharge.com](http://onerecharge.com)

Features
--------

[](#features)

- Get an Authorization token (Retrieve `API ACCESS KEY` from your agent dashboard)
- Get supported bill payment
- Initiate instant recharge/topup (Airtime)
- Initiate scheduled recharge/topup (Airtime)
- Cancel a scheduled bill payment
- Get your Agent account profile summary in one

Examples
--------

[](#examples)

- Initiate an instant recharge/topup (Airtime)

```
    use Onerecharge\Agent;
    use Onerecharge\Util;
    use Onerecharge\BillPayment;

    //use the Util function like this to get array of supported telco names:
    echo Util::getSupportedBillType();
    //then get an Authorization token. you should store the retrieved token somewhere in your code.
    //tokens can be destroyed from your admin portal anytime (do not store your agent_id and password in your code.)
    $token = Agent::getToken($agent_id, $password);

    $agent = new Agent(API_ACCESS_KEY, $token);
    $billpayment = new BillPayment($agent);
    echo $billpayment->airtimeTopup("08025***373", "Etisalat", 100);
```

Installing onerecharge-php
--------------------------

[](#installing-onerecharge-php)

The recommended way to install onerecharge-php is through [Composer](http://getcomposer.org).

```
# Install Composer
curl -sS https://getcomposer.org/installer | php
```

Next, run the Composer command to install the latest stable version of Guzzle:

```
php composer.phar require onerecharge/onerecharge-php
```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

You can then later update onerecharge-php using composer:

```
composer.phar update
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3056269?v=4)[segsalerty](/maintainers/segsalerty)[@segsalerty](https://github.com/segsalerty)

---

Top Contributors

[![segsalerty2013](https://avatars.githubusercontent.com/u/5175923?v=4)](https://github.com/segsalerty2013 "segsalerty2013 (8 commits)")

### Embed Badge

![Health badge](/badges/onerecharge-onerecharge-php/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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