library vin-decoder
VIN (Vehicle Identification Number) decoder using Vincario API
errorname/vin-decoder
VIN (Vehicle Identification Number) decoder using Vincario API
- Tuesday, September 5, 2017
- by ErrOrnAmE
- Repository
- 1 Watchers
- 2 Stars
- 31 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 29 % Grown
VINDecoder
VIN (Vehicle Identification Number) decoder using Vincario API, (*1)
Setup:
composer require errorname/vin-decoder dev-master
Then, add the Service Provider in your file config/app.php, (*2)
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., (*3)
dev-master
9999999-dev
VIN (Vehicle Identification Number) decoder using Vincario API
Sources
Download
MIT
The Requires