PHP API to get information about crash test ratings for vehicles from NHTSA NCAP 5 Star Safety Ratings
- PHP >= 5.6.4
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
The system utilizes Composer to manage its dependencies. So, before using the system, make sure you have Composer
installed on your machine.
- Clone repository via git
https://github.com/adityavikram-mago/NHTSA.git
- Install Composer after moving to root directory
composer install
- Start Server
php -S localhost:8080 -t ./public
Note: check 8080
is available
GET https://one.nhtsa.gov/webapi/api/SafetyRatings/modelyear/2015/make/Audi/model/A3?format=json
POST http://localhost:8080/vehicles
GET http://localhost:8080/vehicles/<MODEL YEAR>/<MANUFACTURER>/<MODEL>?withRating=true