Recommend this page to a friend! |
Classes of Ganesh Kandu | kchat | vendor/geoip/geoip/README.md | Download |
|
DownloadMaxMind GeoIP Legacy PHP APIImportant NoteThis API is for the GeoIP Legacy format (dat). To read the MaxMind DB format (mmdb) used by GeoIP2, please see our GeoIP2 PHP API. RequirementsThis 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 ComposerWe recommend installing this package with Composer. Download ComposerTo download Composer, run in the root directory of your project:
You should now have the file Install DependenciesRun in your project root:
You should now have the files Require AutoloaderAfter installing the dependencies, you need to require the Composer autoloader from your code:
Install without ComposerPlace the 'geoip.inc' file in the IP Geolocation UsageIP 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. UsageGets country name by hostname :
Memory CachingTo enable memory caching, pass
SupportFor help with this API or our databases, please see [our support page] (http://www.maxmind.com/en/support). Copyright and LicenseThis 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. ThanksThanks to Jim Winstead. |