Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
GeoIP2 PHP API
2
==============
3
 
4
No changes from the upstream version have been made, it is recommended by upstream
5
to install these depdencies via composer - but the composer installation is bundled
6
with a load of test files, shell scripts etc (and we don't use composer to manage
7
'production dependencies') so we have to do it manually.
8
 
9
Information
10
-----------
11
 
12
URL: http://maxmind.github.io/GeoIP2-php/
13
License: Apache License, Version 2.0.
14
 
15
Installation
16
------------
17
 
18
1) Download the latest versions of GeoIP2-php and MaxMind-DB-Reader-php
19
wget https://github.com/maxmind/GeoIP2-php/archive/vX.Y.Z.zip
20
wget https://github.com/maxmind/MaxMind-DB-Reader-php/archive/vX.Y.Z.zip
21
 
22
2) Unzip the archives
23
unzip vX.Y.Z.zip
24
unzip vX.Y.Z.zip
25
 
26
3) Move the source code directories into place
1441 ariadna 27
rm -rf lib/maxmind/GeoIp2/src lib/maxmind/MaxMind/src
1 efrain 28
mv GeoIP2-php-X.Y.Z/src/ /path/to/moodle/lib/maxmind/GeoIp2/
1441 ariadna 29
mv MaxMind-DB-Reader-php-X.Y.Z/src/ /path/to/moodle/lib/maxmind/MaxMind/
1 efrain 30
 
31
4) Update other MaxMind related files:
1441 ariadna 32
mv GeoIP2-php-X.Y.Z/CHANGELOG.md /path/to/moodle/lib/maxmind/GeoIp2/
33
mv GeoIP2-php-X.Y.Z/README.md /path/to/moodle/lib/maxmind/GeoIp2/
34
mv GeoIP2-php-X.Y.Z/composer.json /path/to/moodle/lib/maxmind/GeoIp2/
35
mv GeoIP2-php-X.Y.Z/LICENSE /path/to/moodle/lib/maxmind/GeoIp2/
36
 
1 efrain 37
mv MaxMind-DB-Reader-php-X.Y.Z/LICENSE /path/to/moodle/lib/maxmind/MaxMind/
38
mv MaxMind-DB-Reader-php-X.Y.Z/CHANGELOG.md /path/to/moodle/lib/maxmind/MaxMind/
39
mv MaxMind-DB-Reader-php-X.Y.Z/README.md /path/to/moodle/lib/maxmind/MaxMind/
40
mv MaxMind-DB-Reader-php-X.Y.Z/composer.json /path/to/moodle/lib/maxmind/MaxMind/
41
 
42
5) Run unit tests on iplookup/tests/geoip_test.php.
43
 
44
6) Update maxmind/GeoIp2 and maxmind/MaxMind versions in lib/thirdpartylibs.xml