Driver allowing the SilverStripe-Regional module to pull data from Maxmind using Net_GeoIP
Kirk Mayo
<kirk (dot) mayo (at) solnet (dot) co (dot) nz>
Driver allowing the SilverStripe-Regional module to pull data from Maxmind using GeoIP
composer require marketo/silverstripe-regional-maxmind-geoip-legacy
You will need to confirm that the MaxMind GeoIP database files have been setup and that you can use the
GeoIP function that come with the PHP 5 GeoIP module.
Certain versions of the MaxMind GeoIP API module (https://github.com/maxmind/geoip-api-php/) will conflict
with the PHP 5 GeoIP functions.
You will neeed to retrive a databse for the module to work with this will need to be stored
on the server and you may need to set the location of GeoPath under IPInfoCache in your config yml file.
The free databases can be downloaded from here http://dev.maxmind.com/geoip/legacy/geolite
The curent endpoint returns a JSON object giving location details for the IP address.
The results default to json but they can also be returned as jsonp if this has been defined under
the config for IPInfoCache
http://YOURSITE/geoip/IPADDRESS
http://YOURSITE/geoip/IPADDRESS.json
http://YOURSITE/geoip/IPADDRESS.jsonp
Add tests
Split up conection methods make it easy to use other connectors and dbs
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem