heureka/bank-account-validator

Simple validator for bank account number - verify only checksum

v1.2.1 2024-10-29 09:29 UTC

This package is auto-updated.

Last update: 2024-10-29 09:29:52 UTC


README

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