How mdsameerdev/geoip-api-php works
This repository is a PHP library for looking up geolocation and network attributes from MaxMind’s legacy .dat databases. The principal documented workflow is a PHP caller opening a database, querying an IP address for country information, receiving the result, and closing the handle. Examples and source filenames indicate additional city, region, domain, ASN, organization, and network-speed lookups; their internal routing is not shown in the sampled excerpts. The timezone and region-name modules provide separate geographic reference data. Edges are limited to the README’s explicit usage flow; unsampled implementation details are not asserted.
Main entry points: geoip.inc Database API
Components 12
Legacy lookups
- Database API
src/geoip.inc - Country lookup
src/geoip.inc - City and region
src/geoipcity.inc - Domain lookup
src/geoip.inc - ASN lookup
src/geoip.inc - Organization lookup
src/geoip.inc - Network speed
src/geoip.inc
Geographic reference
- Region names
src/geoipregionvars.php - Timezone mapping
src/timezone.php
Other components
- PHP caller
- Legacy .dat database
- Lookup result
Connections 4
- PHP caller → Database API: opens database
README.md - Database API → Legacy .dat database: reads
README.md - PHP caller → Country lookup: queries IP
README.md - Country lookup → Lookup result: returns country
README.md