Releases: dynamiccookies/vin-decoder
Releases · dynamiccookies/vin-decoder
v0.2.0
First Release!
✨ Features
- Accepts vehicle's VIN as string in primary parameter
- Optional secondary parameter accepts an array or multiple strings specifying which vehicle details to return
- Returns
- Entire array if no secondary parameter is specified, or
- Array of values requested, or
- Array as 'Error' key if invalid VIN provided
🔰 Examples
VIN only (returns entire array)
decodeVIN('4T1SK12E1NU028452');
Secondary parameter as array (only returns values specified)
$options = array('Make','Model','ModelYear','Trim');
decodeVIN('4T1SK12E1NU028452', ...$options);
VIN as variable and additional parameters as strings (only returns values specified)
$vin = '4T1SK12E1NU028452';
decodeVIN($vin, 'Make','Model','ModelYear','Trim');