2017 © Pedro Peláez
 

library ips-location-zh

ipip.net resource, Fetch provincial information via IP.

image

smartjson/ips-location-zh

ipip.net resource, Fetch provincial information via IP.

  • Sunday, June 3, 2018
  • by chensongah
  • Repository
  • 1 Watchers
  • 1 Stars
  • 48 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 60 % Grown

The README.md

ip-location-zh project

ipip.net resource, Fetch provincial information via IP, (*1)

Install

composer require "smartJson/ips-location-zh", (*2)

USAGE

对于普通项目:

require 'vendor/autoload.php';


use smartJson\IpLocationZh\Ip;


var_dump(Ip::find('ip address'));`
````

#### Return info
```markdown
array:4 [
   0 => "中国"
   1 => "上海"
   2 => "上海"
 ]

For Laravel:

# General Usage:
use SmartJson/IpLocationZh;

Ip::find('ip address') OR Ip::find(Request::getClientIp());
Ip::findInfo('ip address') OR Ip::find(Request::getClientIp());
Ip::findMap('ip address') OR Ip::find(Request::getClientIp());

License MIT

The Versions

03/06 2018

dev-master

9999999-dev

ipip.net resource, Fetch provincial information via IP.

  Sources   Download

MIT

by Jason Sun

ip location china chinese

03/06 2018

v1.0.3

1.0.3.0

ipip.net resource, Fetch provincial information via IP.

  Sources   Download

MIT

by Jason Sun

ip location china chinese

18/08 2017

v1.0.2

1.0.2.0

ipip.net resource, Fetch provincial information via IP.

  Sources   Download

MIT

by Jason Sun

ip location china chinese

18/08 2017

v1.0.1

1.0.1.0

ipip.net resource, Fetch provincial information via IP.

  Sources   Download

MIT

by Jason Sun

ip location china chinese