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

1.0.6 2019-12-05 21:45 UTC

This package is not auto-updated.

Last update: 2024-04-27 15:47:40 UTC


README

codecov

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