czphp / national-identification-number-validator
捷克共和国国家识别号码验证器
V1.0.1
2020-08-11 17:36 UTC
Requires
- php: ^7.1
Requires (Dev)
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2024-09-12 03:28:14 UTC
README
捷克语: rodného čísla 验证器
安装
使用以下命令安装最新版本
$ composer require czechphp/national-identification-number-validator
基本用法
<?php use Czechphp\NationalIdentificationNumberValidator\NationalIdentificationNumberValidator; $validator = new NationalIdentificationNumberValidator(); $violation = $validator->validate('401224/001'); if ($violation === NationalIdentificationNumberValidator::ERROR_NONE) { // valid }