adambullmer / usdl-regex
Compiled list of United States Driver License validation 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: 2026-03-29 02:01:25 UTC
README
Sourced from https://ntsi.com/drivers-license-format/ Known to be valid as of 2016-04-16.
Installation
Install with composer: composer require adambullmer/usdl-regex
Usage
$options = array( 'verbose' => FALSE, 'caseInsensitive' => FALSE, ); $validator = new USDLRegex/Validator($options); $validator->validate('TX', '12345678'); // TRUE $validator->validate('TX', '123456789'); // FALSE