Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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...
- Host: GitHub
- URL: https://github.com/reyesoft/php-bank-accounts
- Owner: reyesoft
- License: mit
- Created: 2021-05-22T22:48:30.000Z (over 3 years ago)
- Default Branch: v1.1
- Last Pushed: 2024-07-25T11:39:12.000Z (5 months ago)
- Last Synced: 2024-10-27T09:51:02.103Z (about 2 months ago)
- Language: PHP
- Size: 72.3 KB
- Stars: 5
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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(); // CLABEecho (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/
```