Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paqtcom/license-plate
A copy of the now deleted intrepidity/license-plate repository
https://github.com/paqtcom/license-plate
package
Last synced: 9 days ago
JSON representation
A copy of the now deleted intrepidity/license-plate repository
- Host: GitHub
- URL: https://github.com/paqtcom/license-plate
- Owner: paqtcom
- Created: 2018-10-01T09:02:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-01T09:13:19.000Z (over 6 years ago)
- Last Synced: 2024-11-30T23:15:03.933Z (2 months ago)
- Topics: package
- Language: PHP
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Note
## This repository has been copied because the original has been deleted.License plate validator and formatter
=====================================[![Build Status](https://secure.travis-ci.org/Intrepidity/LicensePlate.svg)](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
==============Add the following to your composer.json:
``` json
{
"require": {
"intrepidity/license-plate": "^1.0.0"
}
}
```How to use
==========Call the constructor of the license plate class of your choice with the user input as the first parameter:
``` php
isValid())
{
echo $licenseplate->format(); // Outputs 08-TT-NP in this case
}
```Since the license plate classes for each country implement the LicensePlateInterface, they expose isValid() and format() methods.
Country-specific methods may also be available. Please check the code of the specific class to get the complete picture.Please note that this library does not check if a license plate actually exists, nor does it exclude combinations that aren't allowed.