adambullmer / usdl-regex
Compiled list of United States Driver License validation regex
Installs: 32 177
Dependents: 0
Suggesters: 0
Security: 0
Stars: 36
Watchers: 3
Forks: 25
Open Issues: 6
Language:Gherkin
Requires
- php: >=5.3.0
Requires (Dev)
- behat/behat: ~2.5
- phpunit/phpunit: 5.3.*
This package is not auto-updated.
Last update: 2024-04-27 15:47:40 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