A PHP wrapper for the NHTSA vPIC API.
- Getting started — install, construct the client, responses, pagination, errors
- VIN decoding —
decodeVin, flat / extended variants, batch, theVinResultobject - Manufacturers & makes
- Models
- WMI — World Manufacturer Identifier lookups
- Vehicle types
- Variables, equipment & parts
- Canadian vehicle specifications
The full method → endpoint → return-type table is in the project README.
All response objects live in Mattsplat\VinDecode\DTO and are immutable. List
endpoints return Mattsplat\VinDecode\Responses\Response, which is iterable,
countable and array-accessible over the DTO rows.
| DTO | Produced by |
|---|---|
VinResult |
decodeVinFlat, decodeVinFlatExtended, decodeVinBatch |
VinVariable |
decodeVin, decodeVinExtended |
Make |
allMakes, makesForManufacturer, makesForManufacturerAndYear, makesForVehicleType |
Model |
modelsForMake, modelsForMakeId, modelsForMakeYear, modelsForMakeIdYear |
Manufacturer |
allManufacturers |
ManufacturerDetail |
manufacturerDetails |
ManufacturerVehicleType |
nested in Manufacturer / ManufacturerDetail |
Wmi |
decodeWmi |
WmiManufacturer |
wmisForManufacturer |
VehicleType |
vehicleTypesForMake, vehicleTypesForMakeId |
Variable |
vehicleVariableList |
VariableValue |
vehicleVariableValues |
PlantCode |
equipmentPlantCodes |
Part |
parts |
CanadianSpecification |
canadianVehicleSpecifications |