tprog / yii2-telize
Get location by IP address use telize API
Installs: 43
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
pkg:composer/tprog/yii2-telize
Requires
- php: >=5.4.0
- wenbin1989/yii2-curl: dev-master
This package is not auto-updated.
Last update: 2025-10-01 13:19:38 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;