Download the PHP package cgili/modus-crashapi without Composer
On this page you can find all versions of the php package cgili/modus-crashapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cgili/modus-crashapi
More information about cgili/modus-crashapi
Files in cgili/modus-crashapi
Package modus-crashapi
Short Description A minimal PHP API to access Crash Statistics
License AGPL-3.0-or-later
Homepage https://github.com/carlosgili/modus-crashapi
Informations about the package modus-crashapi
modus-crashapi
Crash Information API in PHP
This is a simple API implementation developed for ModusCreate in order to get Crash Information from NHTSA (one.nhtsa.gov) in specific JSON Format.
The implementation is pretty simple and it does not offer security measures like authentication, full request parameters validation, full UTF-8 multilanguage compatibility checks, etc.
Requirements
- A Clean Server with Debian 8
- Apache 2.4 or upper server with mod_php enabled
- PHP 5.6 or upper with JSON extension
Optional Requirements
- Composer (http://getcomposer.org) (Only if you plan to Upgrade/Reinstall Flight)
- Flight PHP Framework (http://flightphp.com) (Already Bundled with the App)
Directory Structure
Basic LAMP Setup on Debian
During the setup we assume that you have a newly deployed Server or VM with Debian 8.
For all the setup operations you should be logged-in as 'root'
To setup the basic LAMP use:
We do not require mysql.
To check if PHP is running you can use:
You shoud see a hello.
Changing Apache to Port 8080
To change Apache server to Listen on port 8080, you must edit /etc/apache2/ports.conf and change the line:
For the line:
Then change the file /etc/apache2/sites-available/000-default.conf and change the lines:
For the lines:
Downloading and Installing the Application under the Apache Server
Enter /var/www directory
We will require git to download the repository:
Clone the repository:
Restart Apache and check the results
To restart Apache use:
Now it should be able to access the server at port 8080:
We will need wget:
Now check the if the server is running:
You should get a JSON reponse simillar to:
If your server is accessible thru your network you can also access the server with any browser at:
OPTIONAL: Composer and Flight Setup
First you MUST be inside /var/www/modus-crashapi directory
To install Composer use:
This should have created two new files:
To download and reinstall the Flight Framework you can use:
If you require aditional Information about the Composer installation you can check:
http://getcomposer.com/download/
If you require additional information about Flight setup you can check: