{"id":87480,"library":"geoip2-geoip2","title":"GeoIP2 PHP API","description":"MaxMind GeoIP PHP API.","status":"active","version":"3.3.0","language":"php","source_language":null,"source_url":"https://github.com/maxmind/GeoIP2-php","tags":["geoip","ip-location","maxmind","geolocation"],"install":[{"cmd":"composer require geoip2/geoip2","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Reader","correct":"use GeoIp2\\Database\\Reader;"}],"quickstart":{"code":"use GeoIp2\\Database\\Reader;\n\n$reader = new Reader('/path/to/GeoLite2-City.mmdb');\n$record = $reader->city('128.101.101.101');\necho $record->country->name; // 'United States'","lang":"php","description":"Look up IP address location using a GeoIP2 database."},"warnings":[{"fix":"Download a free GeoLite2 database from MaxMind.","message":"Requires a MaxMind database file (not included).","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'api':3,7 'geoip':5,8 'geoip2':1 'geoloc':13 'ip':10 'ip-loc':9 'locat':11 'maxmind':4,12 'php':2,6","created_at":"2026-06-19T08:18:48.650492+00:00","updated_at":"2026-06-19T08:18:48.650492+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/maxmind/GeoIP2-php","github":"https://github.com/maxmind/GeoIP2-php","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}