dev-master
9999999-devDriver allowing the SilverStripe-Regional module to pull data from Maxmind using Net_GeoIP
BSD-3-Clause
The Requires
by Kirk Mayo
by Nathan J. Brauer
Driver allowing the SilverStripe-Regional module to pull data from Maxmind using Net_GeoIP
Kirk Mayo, (*1)
Driver allowing the SilverStripe-Regional module to pull data from Maxmind using GeoIP, (*3)
composer require marketo/silverstripe-regional-maxmind-geoip-legacy, (*4)
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., (*5)
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, (*6)
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, (*7)
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, (*8)
Driver allowing the SilverStripe-Regional module to pull data from Maxmind using Net_GeoIP
BSD-3-Clause