定制 mrferos/bin-lookup 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mrferos/bin-lookup

Composer 安装命令:

composer require mrferos/bin-lookup

包简介

A took to look up BIN data

README 文档

README

Travis-CI Scrutinizer-CI

BinLookup

A tool to lookup Credit Card BINs from one or more providers easily.

Usage

Using the BinLookup library is simple, first instantiate the BinLookup class:

$binLookup = new BinLookup\BinLookup();

Add a Provider

$binLookup->addProvider(new \BinLookup\Provider\BinListNetApi());

And perform a search

var_dump($binLookup->search(431940));

Output:

class BinLookup\Provider\Result#14 (10) {
  protected $_bin =>
  string(6) "431940"
  protected $_brand =>
  string(4) "VISA"
  protected $_countryCode =>
  string(2) "IE"
  protected $_country =>
  string(7) "Ireland"
  protected $_bank =>
  string(15) "BANK OF IRELAND"
  protected $_cardType =>
  string(5) "DEBIT"
  protected $_latitude =>
  NULL
  protected $_longitude =>
  NULL
  protected $_cardSubBrand =>
  NULL
  protected $_cardCategory =>
  string(0) ""
}

Installing via Composer

The recommended way to install BinLookup is through Composer.

# Install Composer
curl -sS https://getcomposer.org/installer | php

Next, run the Composer command to install the latest stable version of BinLookup:

composer require mrferos/bin-lookup

After installing, you need to require Composer's autoloader:

require 'vendor/autoload.php';

统计信息

  • 总下载量: 84
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-02-17