questocat / bank-card
The bank card parser library
v1.0.0
2018-04-14 07:56 UTC
Requires
- php: >=5.5.0
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~4.0|~5.0
This package is auto-updated.
Last update: 2024-10-20 14:23:25 UTC
README
The bank card parser library
Installation
Using Composer to add the package to your project's dependencies:
composer require questocat/bank-card
Usage
$bankCard = new BankCard('620043459807747768'); // 获取银行卡详细信息 $bankCard->info(); // 返回值 [ 'bank_name' => '福建海峡银行', // 银行名称 'short_code' => 'FJHXBC', // 银行简码 'card_type_name' => '储蓄卡', // 银行卡类型 'card_type' => 'DC', // 银行卡类型代码 'length' => 19, // 银行卡号位数 'validated' => true, // 卡 BIN 验证情况 'luhn' => false, // Luhn 校验 'logo' => 'https://apimg.alipay.com/combo.png?d=cashier&t=FJHXBC', // 银行 Logo ] // 根据指定的银行简码,获取银行 Logo $bankCard->logo('CCB');
Reference
License
Licensed under the MIT license.