Skip to content

tprog/yii2-telize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

yii2-telize

Get location by IP address use telize API

http://www.telize.com/

Installation

Add in composer.json:

{
    "require": {
        "tprog/yii2-telize": "*@dev"
    }
}

Usage

<?
// ...

use tprog\telize\GeoIP;

$GeoIP = new GeoIP();

$GeoIP->request();

echo $GeoIP->longitude;
echo $GeoIP->latitude;
echo $GeoIP->continent_code;
echo $GeoIP->city;
echo $GeoIP->timezone;
echo $GeoIP->region;
echo $GeoIP->country_code;
echo $GeoIP->isp;
echo $GeoIP->country_code3;
echo $GeoIP->country;
echo $GeoIP->region_code;

About

Get location by IP address use telize API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages