IPv4 address locations by 纯真网络
IPv6 address locations by Zx Inc.composer php
composer require ritaswc/zx-ip-address
For Example
$result = \Ritaswc\ZxIPAddress\IPv4Tool::query('114.114.114.114');
/*
$result = [
"start" => "114.114.114.114"
"end" => "114.114.114.114"
"addr" => array:2 [
0 => "江苏省南京市"
1 => "南京信风网络科技有限公司GreatbitDNS服务器"
]
"disp" => "江苏省南京市 南京信风网络科技有限公司GreatbitDNS服务器"
]
*/
$result = \Ritaswc\ZxIPAddress\IPv6Tool::query('240e:e9:8819:0:3::3f9');
/*
$result = [
"start" => "240e:e9:8800::"
"end" => "240e:e9:8fff:ffff::"
"addr" => array:2 [
0 => "**江苏省苏州市"
1 => "**电信IDC"
]
"disp" => "**江苏省苏州市 **电信IDC"
]
*/
ZxIpAddress is licensed under MIT.