chujc/id-card

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

Maintainers

Details

github.com/chujc/id-card

Source

Issues

Installs: 21

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/chujc/id-card

1.0 2018-10-04 09:53 UTC

This package is not auto-updated.

Last update: 2025-09-28 11:03:45 UTC


README

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

安装方式

composer require chujc/id-card

检测方式

IdCard::check('5100199909090009');

laravel专用

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