board / board
该包最新版本(1.3.0)没有可用的许可信息。
此包可以帮助您处理伊朗车辆牌照号码
1.3.0
2017-06-24 13:05 UTC
Requires
- php: >=5.4.0
README
需求
- php ~5.4.*
安装
首先将包名添加到您的composer需求中
"require": { "plate/plate": "dev" }
然后,在终端中更新Composer
composer update
接下来,将新提供者添加到config/app.php的providers数组中
'providers' => [ // ... Plate\PlateServiceProvider::class, // ... ]
接下来,将类别名添加到config/app.php的aliases数组中
'aliases' => [ // ... 'Plate' => Plate\PlateFacade::class // ... ]
最后,运行
php artisan vendor:publish
如何使用
$plate = new Plate\Plate(); $plak = 21 . ' ب ' . 488 . ' - ' . 88 . ' ایران'; $r = $plate->setPlate($plak); print_r($r->getparsedData()); exit; print_r($plate->isCab());
获取图像形式的牌照
$plate->getImage('path/to/export/image.png');
将日期添加到图像
$plate->withDate('95-05-01')->getImage('path/to/export/image.png');