pburggraf / licenseplate
Validate license plates
dev-master
2017-06-01 20:01 UTC
Requires
- php: >=5.6
Requires (Dev)
- phpunit/phpunit: ~5.6
This package is auto-updated.
Last update: 2024-11-06 09:45:29 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.