PHPackages                             adambullmer/usdl-regex - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. adambullmer/usdl-regex

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

adambullmer/usdl-regex
======================

Compiled list of United States Driver License validation regex

1.0.6(6y ago)3939.0k↑65.9%25[3 issues](https://github.com/adambullmer/USDLRegex/issues)[3 PRs](https://github.com/adambullmer/USDLRegex/pulls)MITGherkinPHP &gt;=5.3.0

Since Apr 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/adambullmer/USDLRegex)[ Packagist](https://packagist.org/packages/adambullmer/usdl-regex)[ RSS](/packages/adambullmer-usdl-regex/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (7)Dependencies (2)Versions (8)Used By (0)

US Driver's License Regex Repository
====================================

[](#us-drivers-license-regex-repository)

[![codecov](https://camo.githubusercontent.com/ec90a0e79d84189e485e7810c15b694e209f4f058d757e8e8d8fb6217cfd0df6/68747470733a2f2f636f6465636f762e696f2f67682f6164616d62756c6c6d65722f5553444c52656765782f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/adambullmer/USDLRegex)

Sourced from Known to be valid as of 2016-04-16.

Installation
------------

[](#installation)

Install with composer: `composer require adambullmer/usdl-regex`

Usage
-----

[](#usage)

```
$options = array(
    'verbose'         => FALSE,
    'caseInsensitive' => FALSE,
);
$validator = new USDLRegex/Validator($options);

$validator->validate('TX', '12345678');  // TRUE
$validator->validate('TX', '123456789'); // FALSE
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 77.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~221 days

Recently: every ~329 days

Total

7

Last Release

2403d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ef1bc49ccab4d6d5bc2c6d3c5f74e783f222fc2f283c51354456b07d4485a3b?d=identicon)[adambullmer](/maintainers/adambullmer)

---

Top Contributors

[![adambullmer](https://avatars.githubusercontent.com/u/3661307?v=4)](https://github.com/adambullmer "adambullmer (24 commits)")[![ceklov](https://avatars.githubusercontent.com/u/17913148?v=4)](https://github.com/ceklov "ceklov (2 commits)")[![mbniebergall](https://avatars.githubusercontent.com/u/6422352?v=4)](https://github.com/mbniebergall "mbniebergall (1 commits)")[![TannerBaldus](https://avatars.githubusercontent.com/u/4913202?v=4)](https://github.com/TannerBaldus "TannerBaldus (1 commits)")[![valosip](https://avatars.githubusercontent.com/u/7672010?v=4)](https://github.com/valosip "valosip (1 commits)")[![mastirlaa](https://avatars.githubusercontent.com/u/5530812?v=4)](https://github.com/mastirlaa "mastirlaa (1 commits)")[![beardedinbinary](https://avatars.githubusercontent.com/u/452587?v=4)](https://github.com/beardedinbinary "beardedinbinary (1 commits)")

---

Tags

drivers-licensephpregex

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/adambullmer-usdl-regex/health.svg)

```
[![Health](https://phpackages.com/badges/adambullmer-usdl-regex/health.svg)](https://phpackages.com/packages/adambullmer-usdl-regex)
```

###  Alternatives

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
