2017 © Pedro Peláez
 

library iplocation

纯真IP库

image

niaoyoo/iplocation

纯真IP库

  • Sunday, June 17, 2018
  • by niaoyoo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

安装

安装这个扩展的首选方式是通过 composer., (*2)

执行, (*3)

composer require niaoyoo/iplocation

或添加, (*4)

"niaoyoo/iplocation": "~1.0.0"

根据IP查询

use IpLocation;

$ipLocation = new IpLocation();
$locationModel = $ipLocation->getLocation('8.8.8.8');
print_r($locationModel);
// Array
// (
//     [ip] => 8.8.8.8
//     [begin_ip] => 8.8.8.8
//     [end_ip] => 8.8.8.8
//     [country] => 美国
//     [area] => 加利福尼亚州圣克拉拉县山景市谷歌公司DNS服务器
// )

The Versions

17/06 2018

dev-master

9999999-dev

纯真IP库

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Avatar niaoyoo

thinkphp iplocation thinkphpip

17/06 2018

v1.0.1

1.0.1.0

纯真IP库

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Avatar niaoyoo

thinkphp iplocation thinkphpip