Easily validate license plates and get some information (planned feature).
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();
This project uses phpunit to test the validation of license plates.