PHPackages                             chujc/id-card - 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. chujc/id-card

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

chujc/id-card
=============

检测中国的身份证格式与港澳台居民居住证是否正确

1.0(7y ago)021MITPHP

Since Oct 4Pushed 7y agoCompare

[ Source](https://github.com/chujc/id-card)[ Packagist](https://packagist.org/packages/chujc/id-card)[ RSS](/packages/chujc-id-card/feed)WikiDiscussions master Synced 2w ago

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

检测类型
====

[](#检测类型)

检测中国的身份证格式与港澳台居民居住证是否正确

安装方式
====

[](#安装方式)

```
composer require chujc/id-card
```

检测方式
====

[](#检测方式)

```
IdCard::check('5100199909090009');
```

laravel专用
=========

[](#laravel专用)

```
$v = Validator::make($data, [
    'id' =>  new IdCardRule(),
]);
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Every ~0 days

Total

2

Last Release

2826d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22972932?v=4)[John Chu](/maintainers/chujc)[@chujc](https://github.com/chujc)

---

Top Contributors

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

---

Tags

chinaidentitylaravelID CardChina

### Embed Badge

![Health badge](/badges/chujc-id-card/health.svg)

```
[![Health](https://phpackages.com/badges/chujc-id-card/health.svg)](https://phpackages.com/packages/chujc-id-card)
```

###  Alternatives

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