PHPackages                             djunehor/eyowo-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. [HTTP &amp; Networking](/categories/http)
4. /
5. djunehor/eyowo-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

djunehor/eyowo-php
==================

Helps make your Eyowo API calls giving a stdClass object.

1.0.1(6y ago)98MITPHPCI failing

Since Dec 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/djunehor/eyowo-php)[ Packagist](https://packagist.org/packages/djunehor/eyowo-php)[ Docs](https://github.com/yabacon/paystack-php)[ RSS](/packages/djunehor-eyowo-php/feed)WikiDiscussions master Synced 6d ago

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

eyowo-php
=========

[](#eyowo-php)

[![CircleCI](https://camo.githubusercontent.com/7e964d8c29e5a9e7ed76cd9c6b102fc3004f8ec5f6dd4e6724621e9fdd5414c2/68747470733a2f2f636972636c6563692e636f6d2f67682f646a756e65686f722f65796f776f2d7068702e7376673f7374796c653d737667)](https://circleci.com/gh/djunehor/eyowo-php)[![Latest Stable Version](https://camo.githubusercontent.com/e89bee11dd7a9df11d70db9fcbea723164e2e96fe33a6764fc654792c58cefd5/68747470733a2f2f706f7365722e707567782e6f72672f646a756e65686f722f65796f776f2d7068702f762f737461626c65)](https://packagist.org/packages/djunehor/eyowo-php)[![Total Downloads](https://camo.githubusercontent.com/a036b19070c801ab7cce79cb937143e51cb5809f9046b02c111fac28e10823d3/68747470733a2f2f706f7365722e707567782e6f72672f646a756e65686f722f65796f776f2d7068702f646f776e6c6f616473)](https://packagist.org/packages/djunehor/eyowo-php)[![License](https://camo.githubusercontent.com/5825be0c3654da4442607dd63632acb01bdb8be190b9832476e3ee2418ce2fab/68747470733a2f2f706f7365722e707567782e6f72672f646a756e65686f722f65796f776f2d7068702f6c6963656e7365)](https://packagist.org/packages/djunehor/eyowo-php)[![StyleCI](https://camo.githubusercontent.com/f9d5156a20fb3d7fb3fff6542f4f35b523116c8736703661f05f615f8ac3dede/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3232343339383435332f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/224398453)[![Build Status](https://camo.githubusercontent.com/b814b3b34b721c6474f5a61699278ef2f17aa7103f44018e2ce5d555875abfca/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646a756e65686f722f65796f776f2d7068702f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/djunehor/eyowo-php/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1f6fcbba9abb0d3000c4402123273ad5f45091956de04e4a2aef5e3eb302dca5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646a756e65686f722f65796f776f2d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/djunehor/eyowo-php/?branch=master)

A PHP API wrapper for [Eyowo](https://eyowo.com/).

Requirements
------------

[](#requirements)

- Curl 7.34.0 or more recent (Unless using Guzzle)
- PHP 5.4.0 or more recent
- OpenSSL v1.0.1 or more recent

Install
-------

[](#install)

### Via Composer

[](#via-composer)

```
    $ composer require djunehor/eyowo-php
```

Usage
-----

[](#usage)

### 1. Get your API KEYS

[](#1-get-your-api-keys)

- Goto [Eyowo Developer Portal](https://developer.eyowo.com/apps)
- Register and Login
- Create an app

### 2. configure package (optional)

[](#2-configure-package-optional)

- Add `EYOWO_APP_KEY` and `EYOWO_APP_SECRET` to your `.env` and set the values

### 3. Initialise API

[](#3-initialise-api)

```
use Djunehor\Eyowo\Api;

$production is an optional boolean parameter to specify if to use production URL or sandbox.
// Default is false
$eyowo = new Api($appKey, $production); //if appKey is not passed, package uses value in .env
```

NOTE: The sandbox URL was not responding as at last test. So, you might just set $production as true

#### Validate a user

[](#validate-a-user)

```
// phone should be in the format 2348020000000
$eyowo->validate($phone);
```

#### Authenticate user

[](#authenticate-user)

```
// sends SMS to user phone
$eyowo->initiateAuthorization($phone);

// $code is the 6-digit number send to user phone
$eyowo->generateToken($phone, $code);
[
'success' => true,
'data' => [
'accessToken' => kjaskajs7a8s6as7a7s68a,
'refreshToken' => askhas7a7s6a7yajgsa67u
]

$walletToken = $eyowo->getAccessToken();
$refreshToken = $eyowo->getRefreshToken();
```

#### Refresh Token

[](#refresh-token)

```
$eyowo->refreshToken($refreshToken);
```

#### Get banks

[](#get-banks)

```
$output = $eyowo->banks();
[
'success' => true,
'data' => [
    'banks' => [
            [
                        "bankCode" => "090270",
                        "bankName" => "AB MICROFINANCE BANK"
                    ]
...
]
    ]
]

$banks = $eyowo->getBanks();

            [
                        "bankCode" => "090270",
                        "bankName" => "AB MICROFINANCE BANK"
                    ]
...
]

```

#### Transfer to phone

[](#transfer-to-phone)

```
//amount should be in kobo
$eyowo->transferToPhone($walletToken, $amount, $phone);
```

#### Transfer to bank

[](#transfer-to-bank)

```
//amount should be in kobo
$eyowo->transferToPhone($walletToken, $amount, $accountName, $accountNumber, $bankCode);
```

#### Wallet Balance

[](#wallet-balance)

```
$eyowo->balance($walletToken); returns raw API response
$balance = $eyowo->getBalance(); // returns int|float
```

#### VTU

[](#vtu)

```
// provider has to be one of ['mtn', 'glo', 'etisalat', 'airtel'];
$eyowo->vtu($walletToken, $amount, $phone, $provider);
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

- Clone this repo
- Run `composer install`
- Run `cp .env.sample .env`
- Set your API keys in `.env`
- Run `composer test`

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) and [CONDUCT](.github/CONDUCT.md) for details. Check our [todo list](TODO.md) for features already intended.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Zacchaeus Bolaji](https://github.com/djunehor)

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2352d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dbee0bc9066fccd4724bd58a4983602da6d74dc69f9700e94aa326b0dfa5fbf9?d=identicon)[djunehor](/maintainers/djunehor)

---

Top Contributors

[![djunehor](https://avatars.githubusercontent.com/u/20708833?v=4)](https://github.com/djunehor "djunehor (1 commits)")

---

Tags

apipagecurlverifysubscriptionplandisabletransactioncustomeryabaconenableeyowo-phpeyowosoftcom

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[yabacon/paystack-php

Helps make your Paystack API calls giving a stdClass object.

117429.0k11](/packages/yabacon-paystack-php)[nategood/httpful

A Readable, Chainable, REST friendly, PHP HTTP Client

1.8k17.2M267](/packages/nategood-httpful)[e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

11259.2k](/packages/e-moe-guzzle6-bundle)[whatarmy/fedex-rest

New FedEx Rest API wrapper

2440.5k1](/packages/whatarmy-fedex-rest)

PHPackages © 2026

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