library geoip
Maxmind GeoLite2 wrapper
aliasio/geoip
Maxmind GeoLite2 wrapper
- Sunday, March 22, 2015
- by AliasIO
- Repository
- 1 Watchers
- 6 Stars
- 5 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 5 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
GeoIP
Returns country information in JSON format for a given IP address., (*1)
Usage:, (*2)
php index.php <ip_address>
Example output:, (*3)
$ 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:, (*4)
docker run alias/geoip <ip_address>