PHP code example of ibanapi / api

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

    

ibanapi / api example snippets


     //Get all the IBAN Information
    $ibanApi = new IbanApi\Api("API_KEY");
    $result = $ibanApi->validateIBAN("EE471000001020145685");
    print_r(json_decode($result,true));

     //Get all the basic IBAN Information
    $ibanApi = new IbanApi\Api("API_KEY");
    $result = $ibanApi->validateIBANBasic("EE471000001020145685");
    print_r(json_decode($result,true));

     //Get the account balance
    $ibanApi = new IbanApi\Api("API_KEY");
    $result = $ibanApi->getBalance();
    print_r(json_decode($result,true));