Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adambullmer/usdlregex
US Driver's License Regex
https://github.com/adambullmer/usdlregex
drivers-license php regex
Last synced: 7 days ago
JSON representation
US Driver's License Regex
- Host: GitHub
- URL: https://github.com/adambullmer/usdlregex
- Owner: adambullmer
- Created: 2013-04-04T20:33:42.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-03-22T14:19:54.000Z (over 3 years ago)
- Last Synced: 2024-04-23T17:52:25.604Z (7 months ago)
- Topics: drivers-license, php, regex
- Language: Gherkin
- Size: 38.1 KB
- Stars: 36
- Watchers: 3
- Forks: 25
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
US Driver's License Regex Repository
====================================[![codecov](https://codecov.io/gh/adambullmer/USDLRegex/branch/master/graph/badge.svg)](https://codecov.io/gh/adambullmer/USDLRegex)
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
-----```php
$options = array(
'verbose' => FALSE,
'caseInsensitive' => FALSE,
);
$validator = new USDLRegex/Validator($options);$validator->validate('TX', '12345678'); // TRUE
$validator->validate('TX', '123456789'); // FALSE
```