Skip to content

sayadaazami/Plate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Iran Vehicle Plate Number Package

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');

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages