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

ActiveLibrary

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

Onerecharge agents integration php library

14PHP

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 2mo ago

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 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

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://www.gravatar.com/avatar/bd9db074f6d78f1be0b9c45751697f3adf08dbe84ccb1e0a899559e39fd37bff?d=identicon)[segsalerty](/maintainers/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)
```

PHPackages © 2026

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