MDL-67593 core_iplookup: use MaxMind test database in unit tests
[moodle.git] / lib / maxmind / readme_moodle.txt
CommitLineData
eacc36a2
DP
1GeoIP2 PHP API
2==============
3
4No changes from the upstream version have been made, it is recommended by upstream
5to install these depdencies via composer - but the composer installation is bundled
6with a load of test files, shell scripts etc (and we don't use composer to manage
7'production depdendencies') so we have to do it manually.
8
9Information
10-----------
11
12URL: http://maxmind.github.io/GeoIP2-php/
13License: Apache License, Version 2.0.
14
15Installation
16------------
17
181) Download the latest versions of GeoIP2-php and MaxMind-DB-Reader-php
247206c9
MG
19wget https://github.com/maxmind/GeoIP2-php/archive/v2.9.0.zip
20wget https://github.com/maxmind/MaxMind-DB-Reader-php/archive/v1.4.1.zip
eacc36a2
DP
21
222) Unzip the archives
247206c9
MG
23unzip v2.9.0.zip
24unzip v1.4.1.zip
eacc36a2
DP
25
263) Move the source code directories into place
247206c9
MG
27mv GeoIP2-php-2.9.0/src/ /path/to/moodle/lib/maxmind/GeoIp2/
28mv MaxMind-DB-Reader-php-1.4.1/src/MaxMind/ /path/to/moodle/lib/maxmind/MaxMind/
eacc36a2 29
b145fe21 304) Run unit tests on iplookup/tests/geoip_test.php.