Skip to content

Releases: dynamiccookies/vin-decoder

v0.2.0

19 Jul 22:39
Compare
Choose a tag to compare

⚡ Updates

  • Added @link tag to GitHub repo and @version tag to comment block (#3)
  • Reformatted ['Make'] text as title case from uppercase (#5)
    • Updated README.md to reflect title case text

🪲 Bug Fixes

  • Trimmed text in ['Searched'] array value to only return VIN (#1)

First Release!

01 Jul 02:42
cdccb00
Compare
Choose a tag to compare

✨ 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');