adambullmer / usdl-regex
美国驾照验证正则表达式编译列表
1.0.6
2019-12-05 21:45 UTC
Requires
- php: >=5.3.0
Requires (Dev)
- behat/behat: ~2.5
- phpunit/phpunit: 5.3.*
This package is not auto-updated.
Last update: 2024-09-28 17:59:54 UTC
README
来源于 https://ntsi.com/drivers-license-format/,截至2016年4月16日已知有效。
安装
使用composer安装: composer require adambullmer/usdl-regex
使用方法
$options = array( 'verbose' => FALSE, 'caseInsensitive' => FALSE, ); $validator = new USDLRegex/Validator($options); $validator->validate('TX', '12345678'); // TRUE $validator->validate('TX', '123456789'); // FALSE