PHP code example of besrourms / tnrib-php
1. Go to this page and download the library: Download besrourms/tnrib-php 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/ */
besrourms / tnrib-php example snippets
use besrourms\tnrib\TNRIB;
$tnrib = new TNRIB('07040005810111129653');
if ($tnrib->isValid()) {
echo 'IBAN: ' . $tnrib->iban() . '<br>';
echo 'BIC: ' . $tnrib->bic() . '<br>';
echo 'Account Number: ' . $tnrib->accountNumber() . '<br>';
echo 'Bank Name: ' . $tnrib->bankName() . '<br>';
} else {
echo 'Invalid BBAN';
}
bash
composer