Skip to content

Latest commit

 

History

History
31 lines (30 loc) · 876 Bytes

File metadata and controls

31 lines (30 loc) · 876 Bytes

Vin Decoder (Vin Audit)

laravel package: Get vehicle details by using vin (Vin Audit Api)

Installation

composer require marxolity/vin-decoder

Config

php artisan vendor:publish --provider="Marxolity\VinDecoder\Providers\VinDecoderServiceProvider" --tag="config"

Setup -> Env

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(),

Usage

   \VinDecoder::getMarketValueByVin('1NXBR32E85Z505904'); # output: ?array (array or null)
   \VinDecoder::getVehicleSpecificationByVin('1NXBR32E85Z505904'); # output: ?array (array or null)