PHP code example of sanf / iran-bank-detector

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

    

sanf / iran-bank-detector example snippets



use iranBank\IranBankDetector;

$detector = new IranBankDetector();
$bank = $detector->getBankByIBanCode("IR020170000000000000000000");
print_r($bank);



use iranBank\IranBankDetector;

$detector = new IranBankDetector();
$bank = $detector->getBankByCardNumber("60637311");
print_r($bank);