|Classes of Ganesh Kandu||>||kchat||>||vendor/geoip/geoip/README.md||>||Download|
MaxMind GeoIP Legacy PHP API
This API is for the GeoIP Legacy format (dat). To read the MaxMind DB format (mmdb) used by GeoIP2, please see our GeoIP2 PHP API.
This module has no external dependencies. You only need a MaxMind GeoIP database. To download a free GeoLite Legacy Country database, please see our GeoLite Legacy page.
Install via Composer
We recommend installing this package with Composer.
To download Composer, run in the root directory of your project:
You should now have the file
Run in your project root:
You should now have the files
After installing the dependencies, you need to require the Composer autoloader from your code:
Install without Composer
Place the 'geoip.inc' file in the
IP Geolocation Usage
IP geolocation is inherently imprecise. Locations are often near the center of the population. Any location provided by a GeoIP database should not be used to identify a particular address or household.
Gets country name by hostname :
To enable memory caching, pass
For help with this API or our databases, please see [our support page] (http://www.maxmind.com/en/support).
Copyright and License
This software is Copyright (c) 2016 by MaxMind, Inc.
This is free software, licensed under the GNU Lesser General Public License version 2.1 or later.
Thanks to Jim Winstead.