错误名称/vin-decoder

使用 Vincario API 的 VIN (车辆识别号) 解码器

dev-master 2017-09-05 17:35 UTC

This package is not auto-updated.

Last update: 2024-09-29 05:01:25 UTC


README

使用 Vincario API 的 VIN (车辆识别号) 解码器 Vincario API

设置

composer require errorname/vin-decoder dev-master

然后,在您的文件 config/app.php 中添加服务提供商

Errorname\VINDecoder\VINDecoderServiceProvider::class

用法

use Errorname\VINDecoder\Decoder;

//

Decoder::info('XXXDEF1GH23456789'); // Retrieve the list of available information about this VIN

//

$vin = Decoder::decode('XXXDEF1GH23456789'); // Retrieve the actual information about this VIN

echo $vin->Make;
echo $vin['Plant Country'];

echo isset($vin['Number of Seats']) ? 'Seats: '.$vin['Number of Seats'] : 'No seats';

print_r($vin->available()); // Print the list of available information about this VIN

//

$balance = Decoder::balance();

echo "API requests left: ".$balance;

许可证

VINDecoder 是一个开源软件,根据MIT 许可证授权。