2017 © Pedro Peláez
 

silverstripe-module silverstripe-regional-maxmind-geoip-legacy

Driver allowing the SilverStripe-Regional module to pull data from Maxmind using Net_GeoIP

image

marketo/silverstripe-regional-maxmind-geoip-legacy

Driver allowing the SilverStripe-Regional module to pull data from Maxmind using Net_GeoIP

  • Monday, February 22, 2016
  • by nathanbrauer
  • Repository
  • 12 Watchers
  • 2 Stars
  • 103 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

Maintainer Contact

Kirk Mayo, (*1)

, (*2)

Requirements

  • SilverStripe 3.2
  • SilverStripe-Regional Module
  • PHP 5 GeoIP module

SilverStripe-Regional-Maxmind-GeoIP-Legacy

Driver allowing the SilverStripe-Regional module to pull data from Maxmind using GeoIP, (*3)

Composer Installation

composer require marketo/silverstripe-regional-maxmind-geoip-legacy, (*4)

Config

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)

GeoIP database

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)

API endpoints

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

TODO

Add tests Split up conection methods make it easy to use other connectors and dbs, (*8)

The Versions

22/02 2016

dev-master

9999999-dev

Driver allowing the SilverStripe-Regional module to pull data from Maxmind using Net_GeoIP

  Sources   Download

BSD-3-Clause

The Requires

 

by Kirk Mayo
by Nathan J. Brauer