PHPackages                             yorch/phpbin - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. yorch/phpbin

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

yorch/phpbin
============

PHP Library for validate BIN/IIN Numbers Cards

268.6k↓42.9%PHP

Since Oct 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/yorch81/phpBIN)[ Packagist](https://packagist.org/packages/yorch/phpbin)[ RSS](/packages/yorch-phpbin/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

phpBIN
======

[](#phpbin)

Description
-----------

[](#description)

PHP Library for validate BIN/IIN Numbers Cards

Requirements
------------

[](#requirements)

- [PHP 5.4.1 or higher](http://www.php.net/)
- [BINList](http://www.binlist.net/)
- [Medoo](http://medoo.in/)
- [MySQL](https://www.mysql.com/)
- [MongoDb](https://www.mongodb.com/)

Developer Documentation
-----------------------

[](#developer-documentation)

Execute phpdoc -d phpBIN/

Unit Test
---------

[](#unit-test)

For run Unit Test, complete information connection and execute the next commands:

> phpunit PhpBINTest.php phpunit PhpBINTestMy.php phpunit PhpBINTestMon.php

Installation
------------

[](#installation)

Create file composer.json

```

{
    "require": {
    	"php": ">=5.4.0",
        "yorch/phpbin" : "dev-master",
        "catfan/medoo": "dev-master"
    }
}

```

Execute composer.phar install

Example
-------

[](#example)

```

$mybin = PhpBIN::getInstance('BinList');

var_dump($mybin->getInfo("111904"));

array(11) {
  'BIN' =>
  string(6) "111904"
  'BRAND' =>
  string(9) "Visa Plus"
  'BANK' =>
  NULL
  'CARD_TYPE' =>
  string(5) "DEBIT"
  'CARD_CATEGORY' =>
  string(4) "VISA"
  'COUNTRY' =>
  string(13) "United States"
  'CC_ISO3166_1' =>
  string(2) "US"
  'CC_ISO_A3' =>
  string(0) ""
  'COUNTRY_NUM' =>
  string(3) "840"
  'WEBSITE' =>
  NULL
  'PHONE' =>
  NULL
}

```

Notes
-----

[](#notes)

This library uses  with this limits.

Limits

Due to the high volume of queries we've implemented a throttling mechanism, which allows at most 10,000 queries per hour. After reaching this hourly quota, all your requests result in HTTP 403 (Forbidden) until it clears up on the next roll over.

For local Database implementation must configure with the connect method.

Check MySQL import script binbase.sql.

For import binbase to MongoDb check mongo.script and execute commands.

References
----------

[](#references)

P.D. Let's go play !!!

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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/cac2c0353ae65e0178e939fe92047396e8dd81d8461cfd5ae2492cd32c1534bd?d=identicon)[yorch](/maintainers/yorch)

---

Top Contributors

[![yorch81](https://avatars.githubusercontent.com/u/4605324?v=4)](https://github.com/yorch81 "yorch81 (10 commits)")

### Embed Badge

![Health badge](/badges/yorch-phpbin/health.svg)

```
[![Health](https://phpackages.com/badges/yorch-phpbin/health.svg)](https://phpackages.com/packages/yorch-phpbin)
```

PHPackages © 2026

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