strongdonkey / iplocator
A tool for Convert IP address to location
1.1
2020-08-04 09:01 UTC
Requires
- php: >=5.6.0
This package is auto-updated.
Last update: 2024-10-04 18:32:17 UTC
README
数据采用纯真数据,http://www.cz88.net/ip 感谢CZ88多年以来的IP数据贡献
当前数据库版本:2020-07-30
require_once 'vendor/autoload.php'; use Strongdonkey\IPLocator\Locator; var_dump(Locator::find('52.206.227.240')); //返回值 array(4) { ["beginip"]=> string(10) "52.200.0.0" //当前IP段起始 ["endip"]=> string(14) "52.207.255.255" //当前IP段结束 ["country"]=> string(6) "美国" //国家或地区 ["area"]=> string(42) "弗吉尼亚州阿什本Amazon数据中心" //所属单位或运营商 }