bupy7/yii2-telize 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bupy7/yii2-telize

最新稳定版本:1.1.0

Composer 安装命令:

composer require 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.

README 文档

README

Extension is deprecated. More info here.

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/

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"bupy7/yii2-telize": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

Add following code to your configuration file of application:

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

Get information from IP address:

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.

统计信息

  • 总下载量: 50
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-06-24