sunrise/vin
最新稳定版本:v1.3.0
Composer 安装命令:
composer require sunrise/vin
包简介
VIN decoder for PHP 7.1+ based on ISO-3779
README 文档
README
Installation
composer require sunrise/vin
How to use?
use InvalidArgumentException; use Sunrise\Vin\Vin; try { $vin = new Vin('WVWZZZ1KZ6W612305'); } catch (InvalidArgumentException $e) { // It isn't a valid VIN... } $vin->getVin(); // "WVWZZZ1KZ6W612305" $vin->getWmi(); // "WVW" $vin->getVds(); // "ZZZ1KZ" $vin->getVis(); // "6W612305" $vin->getRegion(); // "Europe" $vin->getCountry(); // "Germany" $vin->getManufacturer(); // "Volkswagen" $vin->getModelYear(); // [2006] // convert the VIN to a string (string) $vin; // converts the VIN to array $vin->toArray();
Useful links
- https://en.wikipedia.org/wiki/Vehicle_identification_number
- https://en.wikibooks.org/wiki/Vehicle_Identification_Numbers_(VIN_codes)
- https://en.wikibooks.org/wiki/Vehicle_Identification_Numbers_(VIN_codes)/World_Manufacturer_Identifier_(WMI)
- https://en.wikibooks.org/wiki/Vehicle_Identification_Numbers_(VIN_codes)/Model_year
统计信息
- 总下载量: 115.46k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 82
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-10-16