marxolity / vin-decoder
此包的最新版本(v1)没有可用的许可信息。
使用vin获取车辆详细信息
v1
2022-10-20 14:50 UTC
Requires
- guzzlehttp/guzzle: ^7.5
Requires (Dev)
- orchestra/testbench: ^5.0|^6.0|^7.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-09-28 18:05:28 UTC
README
laravel包:通过vin获取车辆详细信息(Vin Audit Api)
安装
composer require marxolity/vin-decoder
配置
php artisan vendor:publish --provider="Marxolity\VinDecoder\Providers\VinDecoderServiceProvider" --tag="config"
设置 -> 环境变量
VIN_DECODER_VIN_AUDIT_API_KEY="<<API_KEY_HERE>>"
config/app.php
'providers' => [ ... Marxolity\VinDecoder\Providers\VinDecoderServiceProvider::class, ], 'aliases' => Facade::defaultAliases()->merge([ ... 'VinDecoder' => Marxolity\VinDecoder\Facades\VinDecoder::class ])->toArray(),
用法
\VinDecoder::getMarketValueByVin('1NXBR32E85Z505904'); # output: ?array (array or null) \VinDecoder::getVehicleSpecificationByVin('1NXBR32E85Z505904'); # output: ?array (array or null)