Download the PHP package emyu/nuban without Composer

On this page you can find all versions of the php package emyu/nuban. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nuban

Nigeria Uniform Bank Account Number (NUBAN)

This is an easy to use PHP package to help businesses to verify and generate NUBAN numbers for any Nigerian financial institution in accordance with the CBN revised standard 2020.

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.

Installation

To install this package, using your terminal interface, go to your project directory by running

'cd ~/your/project/directory'

To confirm present directory, run

'pwd'

Download the package using composer by running

'composer require emyu/nuban'

How to use

There are two use cases for this package. 'Validation' and 'Generation'

Validation

Follow these steps to validate an account number.

Get a valid bank code (DMB or OFI) and an account number you wish to verify belonging to the bank.

Import the Nuban class using the 'use Emyu/Nuban/Nuban'

Call the Nuban class with it's static method as 'Nuban::validate($bankCode, $accountNumber)' to validate your account number.

It returns 'Valid' if account number is correct and belongs to the bank with the code. Returns 'Invalid' otherwise.

Generation

Follow these steps to generate an account number.

Get a valid bank code (DMB or OFI) and a 9 digit serial number you wish to use as an account number.

Import the Nuban class using the 'use Emyu/Nuban/Nuban'

Call the Nuban class with it's static method as 'Nuban::generate($bankCode, $serialNumber)' to generate a valid account number.

It returns valid account number for the bank with the code if bank code is valid. Throws an error message if otherwise.

Incoming features

Want to Contribute?

Love this package?

Please star this repo.

Follow me on Twitter for more updates!


All versions of nuban with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package emyu/nuban contains the following files

Loading the files please wait ....