PHP GeoIP Tests
git clone https://github.com/henchman21/geoip-tests.git
cd geoip-tests
git submodule init
git submodule updatecd geoip-tests
mkdir GeoIP
cd GeoIP
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNumv6.dat.gz
for i in *.gz; do gunzip $i; doneIf you follow this exactly, it will prevent the GeoIP database files from being added to your repositories because that directory is in the .gitignore file.
This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com.
Also includes flags from http://www.famfamfam.com/lab/icons/flags/