$ 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
composer require geoip2/geoip2