Skip to content

heureka/bank-account-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Basic account number validation based on checksum for specific countries

Use make file for run test. make tests

Usage

Install with composer:

composer require heureka/bank-account-validator
<?php

require_once __DIR__ . '/vendor/autoload.php';

$validator = new BankAccountValidator\Czech();
$isValid = $validator->validate('333-123/0123');

Implemented Countries

First implemented country is Czech Republic

Czech validation part is based on law 169/2011 Sb. [1]
For validate correct bank code is used table from cnb.cz [2]

Links

[1] http://www.cnb.cz/cs/platebni_styk/ucty_kody_bank/download/kody_bank_CR.pdf
[2] http://www.cnb.cz/cs/platebni_styk/pravni_predpisy/download/vyhl_169_2011.pdf

License

GPL 2.1