PHPackages                             divtag-nl/license-plate - 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. divtag-nl/license-plate

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

divtag-nl/license-plate
=======================

PHP library to validate and format license plate numbers.

v1.0.0(7y ago)551.5k↓23.5%2[1 PRs](https://github.com/divtag-nl/license-plate/pulls)LGPL-3.0-or-laterPHPPHP &gt;=5.6.0

Since Apr 16Pushed 2y ago5 watchersCompare

[ Source](https://github.com/divtag-nl/license-plate)[ Packagist](https://packagist.org/packages/divtag-nl/license-plate)[ Docs](https://github.com/divtag-nl/license-plate.git)[ RSS](/packages/divtag-nl-license-plate/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

License plate validator and formatter
=====================================

[](#license-plate-validator-and-formatter)

[![Build Status](https://camo.githubusercontent.com/b9b36ec116e2846b3cb9f16636dd5cf39f9fc54012867fa1659cb8df849782fa/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f496e7472657069646974792f4c6963656e7365506c6174652e737667)](http://travis-ci.org/Intrepidity/LicensePlate)

This library can be used to validate and format license plate numbers. Countries currently supported:

- Belgium (1971-now)
- France (1976-now)
- German (unknown-now)
- Israel (unknown date-now)
- Netherlands (1951-now)
- Spain (1900-now)
- United Kingdom (1903-now)

Other countries will be added in the future

How to install
==============

[](#how-to-install)

Add the following to your composer.json:

```
{
    "require": {
        "divtag-nl/license-plate": "^1.0.0"
    }
}
```

How to use
==========

[](#how-to-use)

Call the constructor of the license plate class of your choice with the user input as the first parameter:

```
