library yii2-telize
Get location by IP address use telize API
tprog/yii2-telize
Get location by IP address use telize API
- Friday, April 10, 2015
- by taxist08
- Repository
- 2 Watchers
- 0 Stars
- 40 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 1 Versions
- 5 % Grown
yii2-telize
Get location by IP address use telize API, (*1)
http://www.telize.com/, (*2)
Installation
Add in composer.json
:, (*3)
{
"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;
dev-master
9999999-dev
Get location by IP address use telize API
Sources
Download
MIT
The Requires
by
Artem Bondarenko