2017 © Pedro Peláez
 

yii2-extension yii2-ip-look-up

QQWry、upLookup、ipToCity integration for the Yii2 framework

image

juckzhang/yii2-ip-look-up

QQWry、upLookup、ipToCity integration for the Yii2 framework

  • Tuesday, April 25, 2017
  • by juckzhang
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

根据ip获取对应的城市名称 Extension for Yii2

根据ip获取对应的城市名称 qqwry QQWry, (*1)

Latest Stable Version Total Downloads License, (*2)

Installation

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

Either run, (*4)

composer require juckzhang/yii2-ip-look-up:*

or add, (*5)

"juckzhang/yii2-ip-look-up": "*"

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

Configuration

To use this extension, simply add the following code in your application configuration:, (*7)

[配置]

/** QiNiu **/
return [
    'components' => [
      'ipLookUp' => [
          'class' => 'juckzhang\ipLookUp\IpLookUp',
          'file'  => 'qqwry.dat'//纯真ip库文件地址
    ],
]

[使用]

1、更新纯真ip库文件
\Yii::$app->get('ipLookUp')->updateQqWryFile();

2、根据ip返回城市信息
\Yii::$app->get('ipLookUp')->ipLookUp($ip);

Tricks

The Versions

25/04 2017

dev-master

9999999-dev

QQWry、upLookup、ipToCity integration for the Yii2 framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Avatar juckzhang

extension yii2 helper ip juckzhang qqwry iplookup

25/04 2017

1.0.1

1.0.1.0

QQWry、upLookup、ipToCity integration for the Yii2 framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Avatar juckzhang

extension yii2 helper ip juckzhang qqwry iplookup

21/04 2017

1.0.0

1.0.0.0

QQWry、upLookup、ipToCity integration for the Yii2 framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Avatar juckzhang

extension yii2 helper ip juckzhang qqwry iplookup