vvv/identity_card

身份证验证

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:1

pkg:composer/vvv/identity_card

v1.0 2021-11-19 05:44 UTC

This package is auto-updated.

Last update: 2025-11-19 14:45:33 UTC


README

身份证验证

运行环境

  • php >= 7.0
  • composer

安装

$ composer require vvv/identity_card

使用

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

License

MIT