Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages