PHPackages                             mrferos/bin-lookup - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mrferos/bin-lookup

ActiveLibrary

mrferos/bin-lookup
==================

A took to look up BIN data

3843PHP

Since Feb 18Pushed 11y ago2 watchersCompare

[ Source](https://github.com/mrferos/BinLookup)[ Packagist](https://packagist.org/packages/mrferos/bin-lookup)[ RSS](/packages/mrferos-bin-lookup/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Travis-CI](https://camo.githubusercontent.com/8e64028cfd907afe73fe1656ab47eb65bf9d23f49b55ea7058c54d23bb359363/68747470733a2f2f7472617669732d63692e6f72672f6d726665726f732f42696e4c6f6f6b75702e737667)](https://camo.githubusercontent.com/8e64028cfd907afe73fe1656ab47eb65bf9d23f49b55ea7058c54d23bb359363/68747470733a2f2f7472617669732d63692e6f72672f6d726665726f732f42696e4c6f6f6b75702e737667)[![Scrutinizer-CI](https://camo.githubusercontent.com/40608ebfefe2cd56d56d8daedd79e298dc7f892267b1685e1b55227f20e3de7f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d726665726f732f42696e4c6f6f6b75702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://camo.githubusercontent.com/40608ebfefe2cd56d56d8daedd79e298dc7f892267b1685e1b55227f20e3de7f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d726665726f732f42696e4c6f6f6b75702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)

BinLookup
=========

[](#binlookup)

A tool to lookup [Credit Card BINs](http://en.wikipedia.org/wiki/Bank_card_number) from one or more providers easily.

### Usage

[](#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

[](#installing-via-composer)

The recommended way to install BinLookup is through [Composer](http://getcomposer.org).

```
# 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';
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7af41bdd34c88e63ccca096fa4f461a24650f13161920be9a28de13068fbe0a1?d=identicon)[mrferos](/maintainers/mrferos)

---

Top Contributors

[![mrferos](https://avatars.githubusercontent.com/u/69551?v=4)](https://github.com/mrferos "mrferos (14 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

### Embed Badge

![Health badge](/badges/mrferos-bin-lookup/health.svg)

```
[![Health](https://phpackages.com/badges/mrferos-bin-lookup/health.svg)](https://phpackages.com/packages/mrferos-bin-lookup)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
