PHP code example of zyan / license-plate-number

1. Go to this page and download the library: Download zyan/license-plate-number library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

zyan / license-plate-number example snippets


use Zyan\LicensePlateNumber\LicensePlateNumber;

$plate = new LicensePlateNumber('./temp/'); //保存路径

//普通轿车
$res = $plate->blue('京', 'A', "1", "2", "3", "4", "5");

//粤港澳
//$res = $plate->black('粤', 'Z', "6", "7", "8", "9", "港");

//中型车
//$res = $plate->yellow('京', 'A', "6", "7", "8", "9", "0");

//白色警车
//$res = $plate->white('京', 'B', "1", "2", "3", "4", "警");

//获取图片路径
$res->getFilename();