Download the PHP package kostikpenzin/yii2-geoip without Composer
On this page you can find all versions of the php package kostikpenzin/yii2-geoip. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kostikpenzin/yii2-geoip
More information about kostikpenzin/yii2-geoip
Files in kostikpenzin/yii2-geoip
Package yii2-geoip
Short Description Yii2 geoip extension for Sypex Geo API
License BSD-2-Clause
Homepage https://github.com/kostikpenzin/yii2-geoip
Informations about the package yii2-geoip
yii2-geoip
Geo ip for Yii2
Sypex Geo is an IP location based product from the creators of Sypex Dumper. Having received the IP-address, Sypex Geo gives out information about the visitor's location - country, region, city, geographic coordinates.
Sypex Geo - distributed under the BSD license, that is, it is completely free.
As a database, Sypex Geo uses a binary file of its own format. This format is open and universal. When developing the format, a lot of work was done to optimize the algorithm. Due to this, Sypex Geo works much faster than competitors, consumes less memory, and also produces fewer disk accesses (due to which, on busy servers, the difference is even greater in favor of Sypex Geo).
Direct links to the database:
- Sypex Geo City DB (free) - http://sypexgeo.net/files/SxGeoCity_utf8.zip
- Sypex Geo City Max DB - https://sypexgeo.net/ru/buy/
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
Information about country, region and city returned as array. For example: