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 today

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 36% 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

3130d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/338110?v=4)[cevin](/maintainers/cevin)[@cevin](https://github.com/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

[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

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

45445.5k1](/packages/jlorente-php-credit-cards)[nekman/luhn-algorithm

Implementation of the Luhn algorithm in PHP. Used in validation of credit card numbers and some national identification numbers.

20854.9k](/packages/nekman-luhn-algorithm)[uuling/id-card

身份证号码验证，兼容18位和15位的新老身份证

169.0k](/packages/uuling-id-card)[chaoswey/taiwan-id-validator

台灣身分證、統一編號驗證

319.9k](/packages/chaoswey-taiwan-id-validator)

PHPackages © 2026

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