Download the PHP package scorpsan/yii2-geoip without Composer
On this page you can find all versions of the php package scorpsan/yii2-geoip. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download scorpsan/yii2-geoip
More information about scorpsan/yii2-geoip
Files in scorpsan/yii2-geoip
Package yii2-geoip
Short Description An extension that allows you to obtain the visitor's IP address and location information from any IP address. Uses http://sypexgeo.net/ for online and http://www.ip2location.com/ library for offline data retrieval.
License BSD-3-Clause
Informations about the package yii2-geoip
yii2-geoip
An extension that allows you to obtain the visitor's location information from any IP address. Uses http://sypexgeo.net/ for online and http://www.ip2location.com/ library for offline data retrieval.
Расширение, позволяющее получать информацию о местоположении посетителя с любого IP-адреса. Использует http://sypexgeo.net/ для онлайн и http://www.ip2location.com/ библиотеки для офлайн получения данных.
Installation
The preferred way to install this extension through composer.
You can set the console
or add
in section in composer.json
file.
Using
Once the extension is installed, simply use it in your code by :
Add following code to your configuration file of application:
Get information from Ip User: Online
Offline
Get information from Select Ip: Online
Offline
Get User Ip:
Return Data
Online
Offline
Usage Session for minimize requests to Sypexgeo
PHP for controller (for examle)
params.php
License
yii2-geoip is released under the BSD 3-Clause License.
All versions of yii2-geoip with dependencies
guzzlehttp/guzzle Version ^7.2
ip2location/ip2location-php Version ^9.0