PHPackages                             vvv/identity\_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. vvv/identity\_card

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

vvv/identity\_card
==================

身份证验证

v1.0(4y ago)14MITPHPPHP &gt;=7.0

Since Nov 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pudy520/identity_card)[ Packagist](https://packagist.org/packages/vvv/identity_card)[ RSS](/packages/vvv-identity-card/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

身份证验证

运行环境
----

[](#运行环境)

- php &gt;= 7.0
- composer

安装
--

[](#安装)

```
$ composer require vvv/identity_card
```

使用
--

[](#使用)

```
 $num = '33071919610920021X';
 if (IdentityCard::isValid($num)) {
     echo '身份证格式正确';
 } else {
     echo '身份证格式不正确';
 }

```

License
-------

[](#license)

MIT

###  Health Score

21

—

LowBetter than 17% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

1733d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/50064997?v=4)[眷恋着你的温柔](/maintainers/pudy520)[@pudy520](https://github.com/pudy520)

---

Top Contributors

[![pudy520](https://avatars.githubusercontent.com/u/50064997?v=4)](https://github.com/pudy520 "pudy520 (1 commits)")

### Embed Badge

![Health badge](/badges/vvv-identity-card/health.svg)

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

###  Alternatives

[toplan/laravel-sms

A mobile phone number validation solution based on laravel

83580.2k2](/packages/toplan-laravel-sms)[drupal/coder

Coder is a library to review Drupal code.

3046.8M629](/packages/drupal-coder)[ph-7/eu-vat-validator

A simple and clean PHP class that validates EU VAT numbers against the central ec.europa.eu database (using the official europa API).

97510.7k1](/packages/ph-7-eu-vat-validator)[hyperf/validation

hyperf validation

122.2M213](/packages/hyperf-validation)[udokmeci/yii2-phone-validator

Modern Yii2 Phone validator wrapper on top of PhoneNumberUtil library also used by Android devices

36227.5k1](/packages/udokmeci-yii2-phone-validator)[snowcap/vat-validation

EU VAT number validation

10112.3k](/packages/snowcap-vat-validation)

PHPackages © 2026

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