version 1.0
This package parses and validates International Bank Account Number (IBAN).
- validate IBAN
- extract BBAN
- extract check digit
- extract country code
- extract bank code
- extract bank account
- PHP5.3
install the latest version via composer
composer require naucon/iban
use Naucon\Iban\Iban;
$type = new Iban('DE68210501700012345678');
echo 'IBAN<br/>';
echo $type->getIban(); // DE68210501700012345678
echo '<br/>';
echo $type->getBban(); // 210501700012345678
echo '<br/>';
echo $type->getCountryCode(); // DE
echo '<br/>';
echo $type->getCountryName(); // Germany
echo '<br/>';
echo $type->getBankcode(); // 21050170
echo '<br/>';
echo $type->getAccount(); // 0012345678
echo '<br/>';
echo $type->getCheckDigits(); // 68
echo '<br/>';
if ($type->isValid()) {
echo 'IBAN is Valid';
echo '<br/>';
}