tprog / yii2-telize
Get location by IP address use telize API
dev-master / 1.0.x-dev
2015-04-10 06:33 UTC
Requires
- php: >=5.4.0
- wenbin1989/yii2-curl: dev-master
This package is not auto-updated.
Last update: 2025-04-16 11:07:00 UTC
README
Get location by IP address use telize API
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;