Skip to content

marcelooblan2016/vin-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)