mmalyszko/php-local-vin-decoder
最新稳定版本:v2.0.0
Composer 安装命令:
composer require mmalyszko/php-local-vin-decoder
包简介
Lightweight VIN decoder for PHP 8+. Quickly decode vehicle brand, model, year, country, and region from a VIN — 100% local, no external API required.
README 文档
README
Decode vehicle brand, model, year, country and region from a VIN number using a fast, local PHP library — no external API calls, no rate limits.
Installation
composer require mmalyszko/php-local-vin-decoder
Usage
use VinDecoder\Vin; $vin = new Vin('W0L0TGF487G011234'); echo $vin->decodeBrand(); // Opel echo $vin->decodeModel(); // Astra (if available in VDS database) echo $vin->decodeYear(); // 2007 echo $vin->decodeCountry(); // Germany echo $vin->decodeRegion(); // Europe
VDS Database
Most common VDS codes matched to popular models are included by default. You can override the database with your own file:
$vin->setVdsDataFilePath('/path/to/your/vds.php');
Testing
Run all tests and check coverage (100%):
composer test
composer test:cover
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-09