PHPackages                             automex/amex-license-plate-formatter-php - 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. automex/amex-license-plate-formatter-php

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

automex/amex-license-plate-formatter-php
========================================

PHP library to validate and format license plate numbers.

v1.1.2(4y ago)49.3k↓43.2%1LGPL-2.1-onlyPHPPHP &gt;=7.1

Since Feb 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/automex/amex-license-plate-formatter-php)[ Packagist](https://packagist.org/packages/automex/amex-license-plate-formatter-php)[ Docs](https://github.com/automex/amex-license-plate-formatter-php.git)[ RSS](/packages/automex-amex-license-plate-formatter-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (5)Used By (0)

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

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

[![All Contributors](https://camo.githubusercontent.com/4e96de37ea680371089642c8762ee051f42043eb64b50c4119a4e48970a2d434/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f616c6c5f636f6e7472696275746f72732d312d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](#contributors-)

CIStatusLint[![Lint](https://github.com/automex/amex-license-plate-formatter-php/actions/workflows/phplint.yml/badge.svg)](https://github.com/automex/amex-license-plate-formatter-php/actions/workflows/phplint.yml)Coverage[![Coverage](https://github.com/automex/amex-license-plate-formatter-php/actions/workflows/ci-coverage.yml/badge.svg)](https://github.com/automex/amex-license-plate-formatter-php/actions/workflows/ci-coverage.yml)Tests[![Tests](https://github.com/automex/amex-license-plate-formatter-php/actions/workflows/ci-php.yml/badge.svg)](https://github.com/automex/amex-license-plate-formatter-php/actions/workflows/ci-php.yml)This library can be used to validate and format license plate numbers.

Countries supported
===================

[](#countries-supported)

Europe
------

[](#europe)

- Belgium (1971-now)
- Finland (1922-now)
- France (1976-now)
- Germany (unknown date-now)
- Italy (1994-now)
- Luxembourg (unknown date-now)
- Netherlands (1951-now)
- Spain (1900-now)
- United Kingdom (1903-now)

Africa
------

[](#africa)

- Central African Republic (2006-now)
- Gabon (1962-now)

Asia
----

[](#asia)

- Israel (unknown date-now)

Oceania
-------

[](#oceania)

- New Zealand (1964-now)

South America
-------------

[](#south-america)

- Brazil (1990-now)

More
----

[](#more)

- More countries will be added in the future

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

[](#how-to-install)

```
composer require automex/amex-license-plate-formatter-php

```

Or add the following to your composer.json:

```
{
    "require": {
        "automex/amex-license-plate-formatter-php": "^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:

```
