./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- geoip2/geoip2 v2.9.0 requires maxmind/web-service-common ~0.5 -> satisfiable by maxmind/web-service-common[v0.5.0].
- geoip2/geoip2 v2.6.0 requires maxmind/web-service-common ~0.4 -> satisfiable by maxmind/web-service-common[v0.4.0, v0.5.0].
..........................
Installation failed, deleting ./composer.json.
composer require geoip2/geoip2
Your requirements could not be resolved to an installable set of packages.
Problem 1
- maxmind/web-service-common v0.5.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- geoip2/geoip2 v2.9.0 requires maxmind/web-service-common ~0.5 -> satisfiable by maxmind/web-service-common[v0.5.0].
- Installation request for geoip2/geoip2 ^2.9 -> satisfiable by geoip2/geoip2[v2.9.0].
$ composer require geoip2/geoip2
Using version ^2.9 for geoip2/geoip2
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 4 installs, 0 updates, 0 removals
- Installing composer/ca-bundle (1.2.4): Downloading (100%)
- Installing maxmind/web-service-common (v0.5.0): Downloading (100%)
- Installing maxmind-db/reader (v1.5.0): Downloading (100%)
- Installing geoip2/geoip2 (v2.9.0): Downloading (100%)
maxmind-db/reader suggests installing ext-gmp (bcmath or gmp is required for decoding larger integers with the pure PHP decoder)
maxmind-db/reader suggests installing ext-maxminddb (A C-based database decoder that provides significantly faster lookups)
Writing lock file
Generating autoload files
Fatal error: Uncaught InvalidArgumentException: The file "/usr/local/share/GeoIP/GeoIP2-City.mmdb" does not exist or is not readable. in phar:///var/www/html/phar/geoip2.phar/vendor/maxmind-db/reader/src/MaxMind/Db/Reader.php:48 Stack trace: #0 phar:///var/www/html/phar/geoip2.phar/src/Database/Reader.php(53): MaxMind\Db\Reader->__construct('/usr/local/shar...') #1 /var/www/html/index.php(21): GeoIp2\Database\Reader->__construct('/usr/local/shar...') #2 {main} thrown in phar:///var/www/html/phar/geoip2.phar/vendor/maxmind-db/reader/src/MaxMind/Db/Reader.php on line 48