mtheusrabelo / NHTSA-PHP-API

NHTSA PHP Proxy API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NHTSA PHP Api

Usage

Copy src/.env.example to src/.env, run the install script and then the run script.

Install

$ cd src

$ php composer.phar install

Run

$ php -S localhost:8888 -t src/public

Docker

Build

$ docker build . -t nhtsa-php-api:latest

Run

$ docker run -p 8888:8888 nhtsa-php-api

PS: You can also use the Makefile to run commands.

Run tests

$ cd src

$ php phpunit.phar

About

NHTSA PHP Proxy API


Languages

Language:PHP 94.9%Language:Makefile 2.9%Language:Dockerfile 1.2%Language:Shell 0.9%