PHP code example of kristofvc / open-iban

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

    

kristofvc / open-iban example snippets

 

$repo = new \Kristofvc\OpenIban\Repository\IbanRepository();

$message = $repo->findIban('BE30000000001111');

if ($message->isValid() {
    $bic = $message->getBankData()->getBic();
}