marxolity/vin-decoder

There is no license information available for the latest version (v1) of this package.

Get vehicle details by using vin

v1 2022-10-20 14:50 UTC

This package is auto-updated.

Last update: 2024-08-28 17:49:40 UTC


README

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)