https://github.com/pburggraf/licenseplate
https://github.com/pburggraf/licenseplate
car licenceplate plate vehicle
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/pburggraf/licenseplate
- Owner: pburggraf
- Created: 2016-05-29T19:09:33.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-07-01T07:25:58.000Z (almost 6 years ago)
- Last Synced: 2025-03-26T04:41:35.358Z (about 1 year ago)
- Topics: car, licenceplate, plate, vehicle
- Language: PHP
- Size: 276 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
LicensePlate [](https://travis-ci.org/pburggraf/LicensePlate) [](https://scrutinizer-ci.com/g/pburggraf/LicensePlate/?branch=master)
===
Easily validate license plates and get some information (planned feature).
## How to use
use PBurggraf\LicensePlate\LicensePlateFactory;
use PBurggraf\LicensePlate\Detector\GermanyDetector;
use PBurggraf\LicensePlate\Detector\NetherlandsDetector;
// Procedural style
$procedural = LicensePlateFactory::fromString($plate, [
GermanyDetector::class,
NetherlandsDetector::class,
]);
// Object orientated
$licensePlate = new LicensePlateFactory($plate);
$licensePlate->addDetectorType(GermanyDetector::class);
$licensePlate->addDetectorType(NetherlandsDetector::class);
$objectOrientated = $licensePlate->getResults();
## Test
This project uses phpunit to test the validation of license plates.