PHP code example of mmalyszko / php-local-vin-decoder
1. Go to this page and download the library: Download mmalyszko/php-local-vin-decoder library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mmalyszko / php-local-vin-decoder example snippets
use VinDecoder\Vin;
$vin = new Vin('W0L0TGF487G011234');
echo $vin->decodeBrand(); // Opel
echo $vin->decodeModel(); // Astra (if available in VDS database)
echo $vin->decodeYear(); // 2007
echo $vin->decodeCountry(); // Germany
echo $vin->decodeRegion(); // Europe
$vin->setVdsDataFilePath('/path/to/your/vds.php');
composer