Download the PHP package brunoric/php-poc-geoapi without Composer
On this page you can find all versions of the php package brunoric/php-poc-geoapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-poc-geoapi
php-poc-geoapi
Very tiny Proof of Concept for calculating distances between two points in the globe. This application provides a small REST API to play with some customer data and their location.
Installing and playing
To install and play this PoC you will just need to have a PHP 7.1+ environment with composer installed and then run the following command in your CLI:
`
To start playing with it, run the command below from inside the project path:
`
This will run the PHP built-in server making the application available at http://127.0.0.1:8000.
Customer list
To list the customers from the default customer repository access the endpoint *:
`
You can then play with the customer properties (id, name, latitude, longitude) and with 'asc' or 'desc' as ordering direction.
`
To order the customers by distance from a specific point just call **:
`
* Current customers are being loaded from a closed list in a S3 bucket.
* The default latitude is 53.339428 and the default longitude is -6.257664.
All versions of php-poc-geoapi with dependencies
ext-ctype Version *
ext-iconv Version *
guzzlehttp/guzzle Version ^6.3
sensio/framework-extra-bundle Version ^5.1
symfony/console Version ^4.1
symfony/flex Version ^1.0
symfony/framework-bundle Version ^4.1
symfony/lts Version ^4@dev
symfony/monolog-bundle Version ^3.3
symfony/yaml Version ^4.1