PHP code example of cevin / cardbin
1. Go to this page and download the library: Download cevin/cardbin 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/ */
cevin / cardbin example snippets
use Cevin\Cardbin\Cardbin;
$cardNo = '6228480402564890018';
// validate china debit card
$info = Cardbin::valid($cardNo);
// $info['bank'] Bank name
// $info['card'] Card name
// @todo: validate global credit card