pburggraf/licenseplate

Validate license plates

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 2

Open Issues: 1

pkg:composer/pburggraf/licenseplate

dev-master 2017-06-01 20:01 UTC

This package is auto-updated.

Last update: 2025-10-06 11:41:46 UTC


README

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.