reyesoft/bank-accounts

PHP Bank Accounts validator, info and more...

1.1.5 2024-07-25 11:38 UTC

README

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/