PHPackages                             cevin/cardbin - 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. cevin/cardbin

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

cevin/cardbin
=============

BankCard validation library for php

1.0.0(8y ago)018PHPPHP &gt;=5.3.0

Since Dec 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/cevin/cardbin)[ Packagist](https://packagist.org/packages/cevin/cardbin)[ Docs](https://github.com/cevin/cardbin)[ RSS](/packages/cevin-cardbin/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Usage
=====

[](#usage)

```
use Cevin\Cardbin\Cardbin;

$cardNo = '6228480402564890018';

// validate china debit card
$info = Cardbin::valid($cardNo);
// $info['bank'] Bank name
// $info['card'] Card name

// @todo: validate global credit card
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3084d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2aded16aa0933ff5531b3f5898075e440488475261be8995009121960f0751ed?d=identicon)[cevin](/maintainers/cevin)

---

Top Contributors

[![cevin](https://avatars.githubusercontent.com/u/338110?v=4)](https://github.com/cevin "cevin (5 commits)")

---

Tags

cardbankcard

### Embed Badge

![Health badge](/badges/cevin-cardbin/health.svg)

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

###  Alternatives

[webmozart/assert

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

7.6k894.0M1.2k](/packages/webmozart-assert)[inacho/php-credit-card-validator

Validates popular debit and credit cards numbers against regular expressions and Luhn algorithm. Also validates the CVC and the expiration date

2051.4M11](/packages/inacho-php-credit-card-validator)[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)[jlorente/php-credit-cards

A PHP package to perform operations on debit and credit cards like format, validate brand, number and Luhn algorithm. It validates popular brands like Visa, Mastercard, American Express, etc.

44421.2k1](/packages/jlorente-php-credit-cards)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)

PHPackages © 2026

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