Skip to content

PHP Bank Accounts validator, info and more...

License

Notifications You must be signed in to change notification settings

reyesoft/php-bank-accounts

Repository files navigation

Bank Accounts validator, names and more...

Installation

Vía Composer

composer require reyesoft/bank-account

Example

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.

  • Argentina (AR)
  • México (MX)
  • Venezuela (VE)
  • Colombia (CO)

Development

./vendor/bin/phpunit tests/