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

267.3k↓26.2%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 1mo ago

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 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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