File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ composer require "jxlwqq/id-validator"
1818
1919## 使用
2020
21- > ` 440308199901101512 ` 和 ` 610104620927690 ` 示例身份证均为随机生成的假数据,如撞车,请联系删除。
21+ > ` 440308199901101512 ` 和 ` 610104620927690 ` 示例大陆居民身份证均为随机生成的假数据,如撞车,请联系删除。
22+ > ` 810000199408230021 ` 和 ` 830000199201300022 ` 示例港澳居民居住证为北京市公安局公布的居住证样式号码。
2223
2324### 验证身份证号合法性
2425
@@ -28,8 +29,10 @@ composer require "jxlwqq/id-validator"
2829use Jxlwqq\IdValidator\IdValidator;
2930
3031$idValidator = new IdValidator();
31- $idValidator->isValid('440308199901101512'); // 18 位
32- $idValidator->isValid('610104620927690'); // 15 位
32+ $idValidator->isValid('440308199901101512'); // 大陆居民身份证 18 位
33+ $idValidator->isValid('610104620927690'); // 大陆居民身份证 15 位
34+ $idValidator->isValid('810000199408230021'); // 港澳居民居住证 18 位
35+ $idValidator->isValid('830000199201300022'); // 台湾居民居住证 18 位
3336```
3437
3538### 获取身份证号信息
You can’t perform that action at this time.
0 commit comments