PHP code example of carterphp / bank
1. Go to this page and download the library: Download carterphp/bank 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/ */
carterphp / bank example snippets
$bank = new Bankcard();
$res = $bank->checkFormat('622700287287000000'); //此处传入银行卡号
return $res;
$bank = new Bankcard();
$res = $bank->info('622700287287000000'); //此处传入银行卡号
return $res;
$bank = new Bankcard();
$res = $bank->getBankInfo('icbc'); //此处传入银行字母简码(不区分大小写)
return $res;