{"id":18550308,"url":"https://github.com/xp-forge/geoip","last_synced_at":"2025-07-24T08:40:19.196Z","repository":{"id":27098999,"uuid":"30566308","full_name":"xp-forge/geoip","owner":"xp-forge","description":"MaxMind GeoIP database reader for the XP Framework","archived":false,"fork":false,"pushed_at":"2024-03-24T10:38:06.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-15T10:08:59.826Z","etag":null,"topics":["geoip","geoip-database","php","xp-framework"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xp-forge.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-02-10T00:19:26.000Z","updated_at":"2021-10-24T08:20:10.000Z","dependencies_parsed_at":"2024-03-24T11:32:14.229Z","dependency_job_id":"d5bf466b-bc5f-4eb6-8a46-e5dc994cb971","html_url":"https://github.com/xp-forge/geoip","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/xp-forge/geoip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-forge%2Fgeoip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-forge%2Fgeoip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-forge%2Fgeoip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-forge%2Fgeoip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xp-forge","download_url":"https://codeload.github.com/xp-forge/geoip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xp-forge%2Fgeoip/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265731188,"owners_count":23818898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["geoip","geoip-database","php","xp-framework"],"created_at":"2024-11-06T21:04:11.172Z","updated_at":"2025-07-24T08:40:19.070Z","avatar_url":"https://github.com/xp-forge.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"GeoIP database\n==============\n\n[![Build status on GitHub](https://github.com/xp-forge/geoip/workflows/Tests/badge.svg)](https://github.com/xp-forge/geoip/actions)\n[![XP Framework Module](https://raw.githubusercontent.com/xp-framework/web/master/static/xp-framework-badge.png)](https://github.com/xp-framework/core)\n[![BSD Licence](https://raw.githubusercontent.com/xp-framework/web/master/static/licence-bsd.png)](https://github.com/xp-framework/core/blob/master/LICENCE.md)\n[![Requires PHP 7.0+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-7_0plus.svg)](http://php.net/)\n[![Supports PHP 8.0+](https://raw.githubusercontent.com/xp-framework/web/master/static/php-8_0plus.svg)](http://php.net/)\n[![Latest Stable Version](https://poser.pugx.org/xp-forge/geoip/version.png)](https://packagist.org/packages/xp-forge/geoip)\n\nThis API allows working with data geoips of different kinds in a functional style, e.g. map/reduce.\n\nExamples\n--------\n\n```php\nuse com\\maxmind\\geoip\\GeoIpDatabase;\nuse io\\File;\n\n$database= GeoIpDatabase::open(new File('GeoLite2-City.mmdb'));\n$record= $database-\u003elookup('8.8.8.8');\n$database-\u003eclose();\n\n// $record= com.maxmind.geoip.Record@{\n//   [city        ] com.maxmind.geoip.Name(#5375480: Mountain View)\n//   [country     ] com.maxmind.geoip.Name(#6252001: United States; code= US)\n//   [continent   ] com.maxmind.geoip.Name(#6255149: North America; code= NA)\n//   [postalCode  ] \"94035\"\n//   [location    ] com.maxmind.geoip.Location(37.386,-122.0838; tz= America/Los_Angeles)\n//   [subdivisions] [com.maxmind.geoip.Name(#5332921: California; code= CA)]\n// }\n```\n\nSee also\n--------\n* http://dev.maxmind.com/geoip/geoip2/geolite2/ GeoLite2 Free Downloadable Databases\n* http://maxmind.github.io/MaxMind-DB/ MaxMind DB File Format Specification","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxp-forge%2Fgeoip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxp-forge%2Fgeoip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxp-forge%2Fgeoip/lists"}