You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a basic library/wrapper for digital vehicle state safety/emissions inspection record lookups. If you need to check the last date(s) a vehicle was state inspected, and you know the state, this library is for you. A few states also support returning information on the last emissions/smog test. Originally designed for integration within a automotive service management SaaS application.
3
4
4
5
# States Supported
5
-
|State|Supported Operations|Notes|
6
-
|:-:|:-|:-|
7
-
|Maryland|[Emissions/Smog](http://mva.mdveip.com/), [Safety](https://egov.maryland.gov/msp/vsi/api/Lookup/Inspections?vehicleVin=)|Pending further tests, but it appears that MD only keeps the e-inspection record until it expires (6 months)|
| Maryland |[Emissions/Smog](http://mva.mdveip.com/), [Safety](https://egov.maryland.gov/msp/vsi/api/Lookup/Inspections?vehicleVin=)| Pending further tests, but it appears that MD only keeps the e-inspection record until it expires (6 months) |
`VIN` is the 17 digit VIN number of the vehicle of interest. `STATE_ABBR` is the *2 digit*[ISO-3166-2](https://en.wikipedia.org/wiki/ISO_3166-2:US) state abbreviation.
54
+
`VIN` is the 17 digit VIN number of the vehicle of interest. `STATE_ABBR` is the _2 digit_[ISO-3166-2](https://en.wikipedia.org/wiki/ISO_3166-2:US) state abbreviation.
31
55
32
56
Returns an array containing `Emissions`, `Safety` multi-dimensional arrays.
33
57
34
-
##### Inspections::safety
58
+
### Inspections::safety
59
+
35
60
Retrieve all state safety (mechanical) inspection reports.
36
61
37
62
PHPDoc
63
+
38
64
```PHP
39
65
/**
40
66
* A endpoint wrapper to return a structured state safety inspection search result
@@ -51,13 +77,15 @@ PHPDoc
51
77
```
52
78
53
79
Usage
80
+
54
81
```PHP
55
-
amattu\Inspections::safety("VIN", "STATE_ABBR");
82
+
amattu2\Inspections::safety("VIN", "STATE_ABBR");
56
83
```
57
84
58
-
`VIN` is the 17 digit VIN number of the vehicle of interest. `STATE_ABBR` is the *2 digit*[ISO-3166-2](https://en.wikipedia.org/wiki/ISO_3166-2:US) state abbreviation.
85
+
`VIN` is the 17 digit VIN number of the vehicle of interest. `STATE_ABBR` is the _2 digit_[ISO-3166-2](https://en.wikipedia.org/wiki/ISO_3166-2:US) state abbreviation.
59
86
60
87
Returns the following array:
88
+
61
89
```PHP
62
90
Array
63
91
(
@@ -70,10 +98,12 @@ Array
70
98
)
71
99
```
72
100
73
-
##### Inspections::emissions
101
+
### Inspections::emissions
102
+
74
103
Pull all emissions records for a vehicle.
75
104
76
105
PHPDoc
106
+
77
107
```PHP
78
108
/**
79
109
* A endpoint wrapper to return a structured state emissions test result
`VIN` is the 17 digit VIN number of the vehicle of interest. `STATE_ABBR` is the *2 digit*[ISO-3166-2](https://en.wikipedia.org/wiki/ISO_3166-2:US) state abbreviation.
127
+
`VIN` is the 17 digit VIN number of the vehicle of interest. `STATE_ABBR` is the _2 digit_[ISO-3166-2](https://en.wikipedia.org/wiki/ISO_3166-2:US) state abbreviation.
97
128
98
129
Returns the following array:
130
+
99
131
```PHP
100
132
Array
101
133
(
@@ -110,24 +142,28 @@ Array
110
142
```
111
143
112
144
# To-Do Integrations
145
+
113
146
A list of potential integrations with state systems. These require advanced parsing or endpoint manipulation to grab the information.
0 commit comments