2017 © Pedro Peláez
 

library bank-card

The bank card parser library

image

questocat/bank-card

The bank card parser library

  • Saturday, April 14, 2018
  • by questocat
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

bank-card

The bank card parser library, (*1)

Scrutinizer Code Quality, (*2)

Installation

Using Composer to add the package to your project's dependencies:, (*3)

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., (*4)

The Versions

14/04 2018

dev-master

9999999-dev

The bank card parser library

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

by Avatar questocat

card bank card bank-card

14/04 2018

v1.0.0

1.0.0.0

The bank card parser library

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

by Avatar questocat

card bank card bank-card

26/07 2017

v2.0.0.x-dev

2.0.0.9999999-dev

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

by Avatar emanci

card bank card bank-card