Skip to content

pburggraf/LicensePlate

Repository files navigation

LicensePlate Build Status Scrutinizer Code Quality

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.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages