adambullmer / usdl-regex
Compiled list of United States Driver License validation regex
Installs: 35 204
Dependents: 0
Suggesters: 0
Security: 0
Stars: 38
Watchers: 1
Forks: 25
Open Issues: 6
Language:Gherkin
pkg:composer/adambullmer/usdl-regex
Requires
- php: >=5.3.0
Requires (Dev)
- behat/behat: ~2.5
- phpunit/phpunit: 5.3.*
This package is not auto-updated.
Last update: 2025-10-11 23:22:23 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