Skip to content

GeoSlim: A Slim PHP framework API wrapper around the Geonames database.

License

Notifications You must be signed in to change notification settings

billmalarky/geoslim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geoslim

GeoSlim: A Slim PHP framework API wrapper around the Geonames database.

GeoSlim allows you to quickly integrate GeoNames lookups into your web app. It imports the GeoNames data into MySql using the CodigoFuerte import script, then sets up basic API routing to allow you to query the geonames data rapidly using Eloquent ORM.

This was benchmarked against the Phalcon PHP framework and Node.js. The results can be found here. http://reidmayo.com/2014/10/25/benchmarking-phalcon-php-vs-slim-framework-with-opcache-vs-node-js/

Setup

Install Virtualbox and Vagrant. Navigate to the GeoSlim directory and run "Vagrant Up"

Vagrant provisioning script will automatically download the geonames data and import it into mysql.

Add the following line to your hosts file: 192.168.100.100 geoslim.local

Navigate your browser to http://geoslim.local and you should be good. Try the following route to ensure everything is working correctly. http://geoslim.local/api/primary/4526992

About

GeoSlim: A Slim PHP framework API wrapper around the Geonames database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published