Download the PHP package atchondjo/geoip2country without Composer
On this page you can find all versions of the php package atchondjo/geoip2country. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download atchondjo/geoip2country
More information about atchondjo/geoip2country
Files in atchondjo/geoip2country
Package geoip2country
Short Description A lightweight but powerful IP address lookup database solution to determine visitors country
License proprietary
Homepage https://github.com/iriven/GeoIP2Country
Informations about the package geoip2country
PHP GeoIP2Country PRO (v2.0.6)
An IP address is only the beginning of endless possibilities, adventures and developments...
What's GeoIP2Country PRO?
A PHP IP Address Geolocation library to help you identify visitors geographical location. This component is Build with an eye to keeping it as lightweight and lookups as fast as possible. And there are no external requests being made during runtime. So, if you need to get your website visitor's country and you don't want to use any API then this is the best solution for you. The project include methods to quickly update your GEOIP DATABASE with the least possible human intervention (for donors only).
What's new in this release?
- Complete refactoring and optimization of processing algorithms
- A new database engine (combining security and efficiency)
- A new component dedicated to updating the database?
- A repository based on statistical data from ICANN (Internet Corporation for Assigned Names and Numbers)
NOTE:
In order to encourage people to support this project, database update components are not included in this repository as they are for donors only. Thus any donor will receive a full copy of this software, including the component that will help him to make his GEOIP database stay up to date. However, other users can still use the software as published here. Only the database update functionality will not be available
Requirements
- pdo_sqlite (runtime deps)
- php_curl (for update only)
Installation And Initialisation :
These instructions will get you a copy of the project up and running on your local machine. there are two options:
- [x] import(copy) GeoIP2Country files into a specific folder of your project
- [x] Using Composer installer(Recommended) by typing the following command:
Usage: (using Composer autoloader)
Getting Country code from given IP address:
Getting current visitor Country code (auto detect his IP address):
Retrieving Country name:
Because one of my publications already deals with the recovery of a country's name from its ISO code. I chose in this project to limit myself to the only search of the country's ALPHA2 ISO code from a given ip address. So, to retrieve the country name (and much more), you must instantiate the "WorldCountriesDatas" class available from HERE, and pass the result of the previous command as follows:
Updating GeoIP datas: (for Donors only)
Compatibility:
- [x] IPV4
- [x] IPV6
Authors
- Alfred TCHONDJO - Project Initiator - Iriven France
License
This project is licensed under the GNU General Public License V3 - see the LICENSE file for details
Donation
If this project help you reduce time to develop, you can give me a cup of coffee :)
Acknowledgments
- This project uses GeoIp data by ICANN, available from Here
Disclaimer
If you use this library in your project please add a backlink to this page by this code.
All versions of geoip2country with dependencies
ext-pdo_sqlite Version *
ext-curl Version *