Skip to content

WebChimp-DE/openiban-php-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Total Downloads GitHub issues GitHub stars GitHub forks License Twitter

OpenIBAN.com PHP Client

If you have any questions, drop me an email: info@webchimp.de

Feel free to contribute! :)

Thanks to @fourcube for providing a simple IBAN API!

Install via Composer

composer install crease29/openiban-client

Usage

openiban.com documentation: https://openiban.com/

Technical validation of IBAN numbers

require 'vendor/autoload.php';

use OpenIban\Client;

$client = new Client();
$IBAN   = 'DE89370400440532013000';

$check1 = $client->validate($IBAN); // $validateBankCode = false, $getBIC = false
$check2 = $client->validate($IBAN, true); // $validateBankCode = true, $getBIC = false
$check3 = $client->validate($IBAN, true, true); // $validateBankCode = true, $getBIC = true

Calculation of IBAN numbers

require 'vendor/autoload.php';

use OpenIban\Client;

$client = new Client();
$IBANData = $client->calculate('DE', '37040044', '0532013000');

Licence

This project uses the GNU General Public License v3.0.