crease29/openiban-client

PHP client for openiban.com API

1.0.0 2017-05-16 18:23 UTC

This package is not auto-updated.

Last update: 2024-11-10 00:54:04 UTC


README

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.