PHPackages                             jcobhams/ngbanks - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jcobhams/ngbanks

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jcobhams/ngbanks
================

PHP Implementation for Lightweight Zero dependency npm package to get list of banks in Nigeria (Recognized by CBN)

v1.0(7y ago)14571MITPHPPHP &gt;=5.3

Since Nov 14Pushed 7y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

NgBanks
-------

[](#ngbanks)

PHP implementation of [ng-banks](https://github.com/BolajiOlajide/ng-banks).

\###Installation Available for installation on packagist using composer.

```
composer require jcobhams/ngbanks

```

### Usage

[](#usage)

After installation and and `require`ing `vendor/autoload.php` file in your project,

```
use jcobhams\NgBanks\NgBanks;
.
.
.
$this->ngbanks = new NgBanks();

//Get All Banks
$this->ngbanks->getBanks();

//Get Access Bank
$this->ngbanks->getBank('044');

//Add New Bank
$this->ngbanks->addBank('Cobhams Savings and Loans', '007', 'CSL', '*007#')
```

The package contains 3 methods:

- `getBanks()`: this method is used to retrieve all the banks in the system.
- `getBank(param)`: this method is used to retrieve a particular bank based on the parameter supplied. The parameter can either the be the slug of the bank or the bank code. For slugs or code that don't exist, this method returns None.
- `addBank($name, $code, $slug, $ussd_code)`: this method will extend the current list of banks on the fly. Returns a array with the new bank just added or `throws exception` if bank `code` or `slug` already exists.

### CONTRIBUTORS

[](#contributors)

This package is authored by Joseph Cobhams.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

2734d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b76a95830eca574cf86063f002e086e2d32ec91551d69af1770b0a1e0722a74?d=identicon)[jcobhams](/maintainers/jcobhams)

---

Tags

moneyfintechbankscbnNigerian

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jcobhams-ngbanks/health.svg)

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

###  Alternatives

[moneyphp/money

PHP implementation of Fowler's Money pattern

4.8k82.5M422](/packages/moneyphp-money)[brick/money

Money and currency library

1.9k37.9M102](/packages/brick-money)[florianv/swap

Exchange rates library for PHP

1.3k6.4M16](/packages/florianv-swap)[cknow/laravel-money

Laravel Money

1.0k4.3M22](/packages/cknow-laravel-money)[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7825.3M18](/packages/akaunting-laravel-money)[kwn/number-to-words

Multi language standalone PHP number to words converter. Fully tested, open for extensions and new languages.

4235.0M21](/packages/kwn-number-to-words)

PHPackages © 2026

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