abcphp / think-ip

ThinkPHP6 ip 包

1.0.0 2022-10-05 13:16 UTC

This package is auto-updated.

Last update: 2024-09-05 18:41:29 UTC


README

ThinkPHP 6 ip 包

安装

composer require abcphp/think-ip @dev

获取IP

\abc\Ip::find("10.82.245.13")

array(7) {
  ["ip"]=>
  string(12) "10.82.245.13"
  ["country"]=>
  string(9) "局域网"
  ["province"]=>
  string(0) ""
  ["city"]=>
  string(0) ""
  ["county"]=>
  string(0) ""
  ["isp"]=>
  string(0) ""
  ["area"]=>
  string(11) "局域网IP"
}

##更新数据

\abc\Ip::update()