1. Go to this page and download the library: Download rikudou/iban library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rikudou / iban example snippets
use Rikudou\Iban\Iban\IBAN;
$iban = new IBAN('CZ5530300000001325090010');
echo $iban->asString(); // prints the iban
echo strval($iban); // the same as above
use Rikudou\Iban\Iban\IBAN;
$iban = new IBAN('CZ5530300000001325090010');
$validator = $iban->getValidator(); // returns instance of GenericIbanValidator
if (!$validator->isValid()) {
// do something
}
use Rikudou\Iban\Iban\CzechIbanAdapter;
$iban = new CzechIbanAdapter('1325090010', '3030');
echo $iban->asString(); // prints CZ5530300000001325090010
use Rikudou\Iban\Iban\CzechIbanAdapter;
$iban = new CzechIbanAdapter('1325090010', '3030');
// returns an instance of CompoundValidator which contains
// CzechIbanValidator and GenericIbanValidator
$validator = $iban->getValidator();
if (!$validator->isValid()) {
// do something
}
use Rikudou\Iban\Iban\SlovakIbanAdapter;
$iban = new SlovakIbanAdapter('1325090010', '0900');
echo $iban->asString(); // prints SK5009000000001325090010
use Rikudou\Iban\Iban\SlovakIbanAdapter;
$iban = new SlovakIbanAdapter('1325090010', '0900');
// currently returns just an instance of GenericIbanValidator
$validator = $iban->getValidator();
if (!$validator->isValid()) {
// do something
}
use Rikudou\Iban\Iban\HungarianIbanAdapter;
$iban = new HungarianIbanAdapter('11773016-11111018');
echo $iban->asString(); // prints HU42117730161111101800000000
use Rikudou\Iban\Iban\HungarianIbanAdapter;
$iban = new HungarianIbanAdapter('11773016-11111018');
// returns an instance of CompoundValidator which contains
// HungarianIbanValidator and GenericIbanValidator
$validator = $iban->getValidator();
if (!$validator->isValid()) {
// do something
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.