2017 © Pedro Peláez
 

yii2-extension yii2-telize

Wrapper of service offers a REST API allowing to get a visitor IP address and to query location information from any IP address.

image

bupy7/yii2-telize

Wrapper of service offers a REST API allowing to get a visitor IP address and to query location information from any IP address.

  • Tuesday, August 2, 2016
  • by bupy7
  • Repository
  • 2 Watchers
  • 4 Stars
  • 33 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

yii2-telize (DEPRECATED)

Extension is deprecated. More info here., (*1)

Wrapper of service offers a REST API allowing to get a visitor IP address and to query location information from any IP address. http://www.telize.com/, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist bupy7/yii2-telize "*"

or add, (*5)

"bupy7/yii2-telize": "*"

to the require section of your composer.json file., (*6)

Usage

Once the extension is installed, simply use it in your code by :, (*7)

Add following code to your configuration file of application:, (*8)

...
'components' => [
    ...
    'geoIp' => [
        'class' => 'bupy7\telize\GeoIp',
        'externalIp' => YII_ENV_DEV,
    ],
    ...
],
...

Get information from IP address:, (*9)

var_dump(Yii::$app->geoIp->info);
// or select address
var_dump(Yii::$app->geoIp->getInfo('255.255.255.255'));
// get ip
var_dump(Yii::$app->geoIp->ip);

License

yii2-widget-cropbox is released under the BSD 3-Clause License., (*10)

The Versions

02/08 2016

dev-master

9999999-dev

Wrapper of service offers a REST API allowing to get a visitor IP address and to query location information from any IP address.

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 geo ip city country location telize

04/10 2015

1.1.0

1.1.0.0

Wrapper of service offers a REST API allowing to get a visitor IP address and to query location information from any IP address.

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 geo ip city country location telize

28/08 2015

1.0.0

1.0.0.0

Wrapper of service offers a REST API allowing to get a visitor IP address and to query location information from any IP address.

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 geo ip city country location telize