PHPackages                             zhangqiang/verify - 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. zhangqiang/verify

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

zhangqiang/verify
=================

基础验证类

1.0.1(8y ago)020PHPPHP &gt;=5.5.0

Since Dec 18Pushed 8y agoCompare

[ Source](https://github.com/zqfirst/verify)[ Packagist](https://packagist.org/packages/zhangqiang/verify)[ RSS](/packages/zhangqiang-verify/feed)WikiDiscussions master Synced today

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

verify
======

[](#verify)

\###该git项目主要是添加了一些验证类(目前只添加了身份证验证类，以后会添加手机号码验证、银行卡号验证等等)

##### 1、在composer.json中添加如下代码，并执行composer install(或者执行执行composer require zhangqiang/verify)：

[](#1在composerjson中添加如下代码并执行composer-install或者执行执行composer-require-zhangqiangverify)

```
  "require": {
      "zhangqiang/verify" : "*"
  },
  "repositories": [
      {
          "type": "composer",
          "url": "https://packagist.org"
      }
  ]

```

##### 2、在yii的components中添加如下配置：

[](#2在yii的components中添加如下配置)

```
  'components' => [
    'idcard' => [
      'class' => 'Verify\idcard\IdcardVerify'
    ]
  ],

```

##### 3、代码中调用

[](#3代码中调用)

```
  if(\Yii::$app->idcard->check('41128219910222051')){
      echo "该身份证号码正确";
  } else {
      echo "该身份证号码有误";
  }

```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

Every ~0 days

Total

2

Last Release

3116d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/43690974?v=4)[zhangqiang001](/maintainers/zhangqiang001)[@zhangqiang001](https://github.com/zhangqiang001)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/zhangqiang-verify/health.svg)

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

###  Alternatives

[chaoswey/taiwan-id-validator

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

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

PHPackages © 2026

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