By Eye Witness
This repo contains the PHP backend where the police crime data is handled. The client sends POST requests to get information of crimes in blocks.
It can also support PUT requests from co-operating police forces or fetch crime data when published by police forces.
API documentation can be found here in our documentation repository
This project requires PHP 7 (beta1 or later). I suggest you either use the instructions at Zend's dedicated PHP 7 site or the vagrant box provided by Rasmus
- Clone the respository
- If you don't have composer in your path run
curl -sS https://getcomposer.org/installer | php
- Run
composer install
There is a test suite available. Simply run php bin/phpunit -c app/
after dependencies are installed (on PHP 7).