plate/plate

There is no license information available for the latest version (1.3.0) of this package.

this package can help you to work on iranian vehicle plate numbers

Maintainers

Details

github.com/mammutgroup/Plate

Source

Installs: 107

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 1

Type:dev

1.3.0 2017-06-24 13:05 UTC

This package is not auto-updated.

Last update: 2024-04-17 18:21:59 UTC


README

Requirements:

  • php ~5.4.*

Instalation:

First add package name to your composer requirements

"require": {
    "plate/plate": "dev"
}

Next, update Composer from the Terminal:

composer update

Next, add your new provider to the providers array of config/app.php:

'providers' => [
    // ...
    Plate\PlateServiceProvider::class,
    // ...
  ]

Next, add class alias to the aliases array of config/app.php:

'aliases' => [
   // ...
      'Plate' => Plate\PlateFacade::class
    // ...
]

Finally, run:

php artisan vendor:publish

Ho to use:

  $plate = new Plate\Plate();
  $plak = 21 .
      ' ب ' .
      488 .
      ' - ' .
      88 .
      ' ایران';

  $r = $plate->setPlate($plak);
  print_r($r->getparsedData()); exit;
  print_r($plate->isCab());

Get plate as image

  $plate->getImage('path/to/export/image.png');

Add date to image

  $plate->withDate('95-05-01')->getImage('path/to/export/image.png');