on-demand release 4.0dev+
[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
969cbd2c 7'production dependencies') so we have to do it manually.
eacc36a2
DP
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
23b681c7
FR
19wget https://github.com/maxmind/GeoIP2-php/archive/vX.Y.Z.zip
20wget https://github.com/maxmind/MaxMind-DB-Reader-php/archive/vX.Y.Z.zip
eacc36a2
DP
21
222) Unzip the archives
23b681c7
FR
23unzip vX.Y.Z.zip
24unzip vX.Y.Z.zip
eacc36a2
DP
25
263) Move the source code directories into place
23b681c7
FR
27mv GeoIP2-php-X.Y.Z/src/ /path/to/moodle/lib/maxmind/GeoIp2/
28mv MaxMind-DB-Reader-php-X.Y.Z/src/MaxMind/ /path/to/moodle/lib/maxmind/MaxMind/
eacc36a2 29
23b681c7
FR
304) Update other MaxMind related files:
31mv MaxMind-DB-Reader-php-X.Y.Z/LICENSE /path/to/moodle/lib/maxmind/MaxMind/
32mv MaxMind-DB-Reader-php-X.Y.Z/CHANGELOG.md /path/to/moodle/lib/maxmind/MaxMind/
33mv MaxMind-DB-Reader-php-X.Y.Z/README.md /path/to/moodle/lib/maxmind/MaxMind/
34mv MaxMind-DB-Reader-php-X.Y.Z/composer.json /path/to/moodle/lib/maxmind/MaxMind/
35mv MaxMind-DB-Reader-php-X.Y.Z/autoload.php /path/to/moodle/lib/maxmind/MaxMind/
36
375) Run unit tests on iplookup/tests/geoip_test.php.
38
969cbd2c 396) Update maxmind/GeoIp2 and maxmind/MaxMind versions in lib/thirdpartylibs.xml