errorname / vin-decoder
VIN (Vehicle Identification Number) decoder using Vincario API
dev-master
2017-09-05 17:35 UTC
Requires
- php: >=7.0
This package is not auto-updated.
Last update: 2025-05-25 08:43:03 UTC
README
VIN (Vehicle Identification Number) decoder using Vincario API
Setup:
composer require errorname/vin-decoder dev-master
Then, add the Service Provider in your file config/app.php
Errorname\VINDecoder\VINDecoderServiceProvider::class
Usage:
use Errorname\VINDecoder\Decoder; // Decoder::info('XXXDEF1GH23456789'); // Retrieve the list of available information about this VIN // $vin = Decoder::decode('XXXDEF1GH23456789'); // Retrieve the actual information about this VIN echo $vin->Make; echo $vin['Plant Country']; echo isset($vin['Number of Seats']) ? 'Seats: '.$vin['Number of Seats'] : 'No seats'; print_r($vin->available()); // Print the list of available information about this VIN // $balance = Decoder::balance(); echo "API requests left: ".$balance;
License
VINDecoder is an open-sourced software licensed under the MIT License.