Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reyesoft/php-bank-accounts

PHP Bank Accounts validator, info and more...
https://github.com/reyesoft/php-bank-accounts

Last synced: about 1 month ago
JSON representation

PHP Bank Accounts validator, info and more...

Awesome Lists containing this project

README

        

# Bank Accounts validator, names and more...

## Installation

Vía Composer

```bash
composer require reyesoft/bank-account
```

## Example

```php
use BankAccounts\Ar\ArBankAccount;
use BankAccounts\Mx\MxBankAccount;

$mx_bank = new MxBankAccount('072580010312850172');
$mx_bank->isValid(); // true
echo $mx_bank->getBankName(); // Banorte
echo $mx_bank->testGetInternalBankAccountNumber(); // 1031285017
echo $mx_bank->getAccountTile(); // CLABE

echo (new ArBankAccount('pablorsk.mp'))
->getAccountTile(); // Alias
echo (new ArBankAccount('0720321188000033530000'))
->getAccountTile(); // CBU/CVU
```

## Available countries

Based on [ISO alpha 2 characters](https://www.nationsonline.org/oneworld/country_code_list.htm).
* Argentina (AR)
* México (MX)
* Venezuela (VE)
* Colombia (CO)

## Development

```bash
./vendor/bin/phpunit tests/
```