PHP code example of frankperez87 / vin-explosion

1. Go to this page and download the library: Download frankperez87/vin-explosion 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/ */

    

frankperez87 / vin-explosion example snippets




t your username and password provided by VinExplosion here.
$account = new \VinExplosion\Account('username', 'password');
$lookup = new \VinExplosion\Lookup($account);

// If you prefer to have the response return in XML format uncomment the following method
// $lookup->setResponseType('application/xml');

// By default the response is a JSON string.
$information = $lookup->requestVinInformation('VIN HERE');

$information = json_decode($information);

print '<pre>';
print_r($information);
print '</pre>';