You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an easy to use PHP package for verifying and generating NUBAN numbers for all Nigerian financial institutions in accordance with the CBN revised standard 2020.
4
+
5
+
There are two categories of financial institutions, Deposit Money Banks (DMB) with 3 digit bank code, and Other Financial Institutions (OFI) with 5 digit bank code. The account number to validate must be 10 digits, while serial number for account number generation must be 9 digits.
6
+
7
+
## How to use
8
+
9
+
There are two use cases for this package. 'Validation' and 'Generation'
10
+
11
+
### Validation
12
+
13
+
Follow these steps to validate an account number.
14
+
15
+
> Get a valid bank code (DMB or OFI) and an account number you wish to verify belonging to the bank.
16
+
17
+
> Import the Nuban class using the 'use Emyu/Nuban/Nuban'
18
+
19
+
> Call the Nuban class with it's static method as 'Nuban::validate($bankCode, $accountNumber)' to validate your account number.
20
+
21
+
> It returns 'Valid' if account number is correct and belongs to the bank with the code. Returns 'Invalid' otherwise.
22
+
23
+
```php
24
+
25
+
use Emyu\Nuban\Nuban;
26
+
27
+
class ExampleClass {
28
+
29
+
public $bankCode = '011';
30
+
31
+
public $accountNumber = '0000014579';
32
+
33
+
function exampleFunction($bankCode, $accountNumber){
0 commit comments