ip2location This extension use IP2Location BIN database to lookup visitor geographical location by their IP address.

  1. Requirements
  2. Usage
  3. Resources

Requirements

Yii 1.x

Usage

$countryCode = Yii::app()->ip2location->getCountryCode($ip);
$countryName = Yii::app()->ip2location->getCountryName($ip);
$regionName = Yii::app()->ip2location->getRegionName($ip);
$cityName = Yii::app()->ip2location->getCityName($ip);
$latitude = Yii::app()->ip2location->getLatitude($ip);
$longitude = Yii::app()->ip2location->getLongitude($ip);
$isp = Yii::app()->ip2location->getISP($ip);
$domainName = Yii::app()->ip2location->getDomainName($ip);
$zipCode = Yii::app()->ip2location->getZIPCode($ip);
$timeZone = Yii::app()->ip2location->getTimeZone($ip);
$netSpeed = Yii::app()->ip2location->getNetSpeed($ip);
$iddCode = Yii::app()->ip2location->getIDDCode($ip);
$areaCode = Yii::app()->ip2location->getAreaCode($ip);
$weatherStationCode = Yii::app()->ip2location->getWeatherStationCode($ip);
$weatherStationName = Yii::app()->ip2location->getWeatherStationName($ip);
$mcc = Yii::app()->ip2location->getMCC($ip);
$mnc = Yii::app()->ip2location->getMNC($ip);
$mobileCarrierName = Yii::app()->ip2location->getMobileCarrierName($ip);
$elevation = Yii::app()->ip2location->getElevation($ip);
$usageType = Yii::app()->ip2location->getUsageType($ip);

Resources

0 0
1 follower
107 downloads
Yii Version: 1.1.*
License: MIT
Category: Others
Developed by: hexasoft
Created on: Jan 9, 2017
Last updated: a year ago

Downloads

show all

Related Extensions