Skip to content

henchman21/geoip-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geoip-tests

PHP GeoIP Tests

Setup

git clone https://github.com/henchman21/geoip-tests.git
cd geoip-tests
git submodule init
git submodule update

Getting the Maxmind GeoLite DB

cd 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; done

If 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.

Acknowledgements

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/

Releases

No releases published

Packages

No packages published

Languages