naucon / iban
This package parses and validates International Bank Account Number (IBAN).
Installs: 18 305
Dependents: 1
Suggesters: 1
Security: 0
Stars: 8
Watchers: 2
Forks: 2
Open Issues: 0
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2024-11-29 04:57:56 UTC
README
version 1.0
About
This package parses and validates International Bank Account Number (IBAN).
Features
- validate IBAN
- extract BBAN
- extract check digit
- extract country code
- extract bank code
- extract bank account
Compatibility
- PHP5.3
Installation
install the latest version via composer
composer require naucon/iban
Usage
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/>';
}