Skip to content
/ Iban Public

This package parses and validates International Bank Account Number (IBAN).

License

Notifications You must be signed in to change notification settings

naucon/Iban

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

naucon Iban Package

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/>';
}

About

This package parses and validates International Bank Account Number (IBAN).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages