PHP code example of ibantest / ibantest-php

1. Go to this page and download the library: Download ibantest/ibantest-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/ */

    

ibantest / ibantest-php example snippets




bantest\Ibantest;

$api = new Ibantest();
$api->setToken('###your_api_token###');

# get count of remaining credits
$res = $api->getRemainingCredits();
print_r($res);

# validate IBAN
$res = $api->validateIban('DE02600501010002034304');
print_r($res);

# calculate IBAN out of country code, bank code and account number
$res = $api->calculateIban('AT', '12000', '703447144');
print_r($res);

# calculate IBAN out of country code, bank code and account number
$res = $api->calculateIban('BE', '510', '0075470', '61');
print_r($res);

# calculate IBAN out of country code, bank code and account number
$res = $api->calculateIban('DE', '10090000', '0657845795');
print_r($res);

# validate BIC
$res = $api->validateBic('BFSWDE33BER');
print_r($res);

# find Bank by country code and bank code
$res = $api->findBank('CH', '100');
print_r($res);

bash
$ composer