aliasio/geoip

This package is abandoned and no longer maintained. No replacement package was suggested.

Maxmind GeoLite2 wrapper

dev-master 2015-03-22 02:22 UTC

This package is not auto-updated.

Last update: 2020-08-25 13:01:30 UTC


README

Returns country information in JSON format for a given IP address.

Usage:

php index.php <ip_address>

Example output:

$ php index.php 63.245.215.20
{"locale_code":"en","continent_code":"NA","continent_name":"North America","country_iso_code":"US","country_name":"United States","ip_address":"63.245.215.20"}

Using Docker:

docker run alias/geoip <ip_address>