2017 © Pedro Peláez
 

library bin-lookup

A took to look up BIN data

image

mrferos/bin-lookup

A took to look up BIN data

  • Wednesday, February 18, 2015
  • by mrferos
  • Repository
  • 2 Watchers
  • 2 Stars
  • 39 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Travis-CI Scrutinizer-CI, (*1)

BinLookup

A tool to lookup Credit Card BINs from one or more providers easily., (*2)

Usage

Using the BinLookup library is simple, first instantiate the BinLookup class:, (*3)

$binLookup = new BinLookup\BinLookup();

Add a Provider, (*4)

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

And perform a search, (*5)

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

Output:, (*6)

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

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

Next, run the Composer command to install the latest stable version of BinLookup:, (*8)

composer require mrferos/bin-lookup

After installing, you need to require Composer's autoloader:, (*9)

require 'vendor/autoload.php';

The Versions

18/02 2015

dev-master

9999999-dev

A took to look up BIN data

  Sources   Download

MIT

The Requires

 

The Development Requires

by Andres Galindo