1 Star 0 Fork 3

李光春 / ip

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT
dtApp Logo

IP数据库

📦 IP数据库 PHP扩展包

Latest Stable Version Latest Unstable Version Total Downloads License PHP Version Dependency Status Dependency Status Dev GitHub last commit GitHub commit activity GitHub contributors

依赖环境

  1. PHP7.0 版本及以上(低版本和7.4版本未做兼容处理!)

数据源

  • datav

支持库

  • 纯真数据库
  • 高德地图
  • 淘宝
  • 百度搜索
  • 腾讯地图
  • 太平洋
  • 搜狐
  • 好搜
  • 新浪
  • IP Geolocation
  • extreme-ip
  • ipip
  • 网易
  • 哔哩哔哩
  • 阿里云

应用示例

使用文档

文档链接

计划支持

  • 纯真数据库运营商优化
  • 获取省份、城市、地区信息列表

纯真数据库返回类型

{
	"location_all": "广东省广州市",
	"isp": {
		"name": "广东互联网络交换中心(越秀区东风路305号)"
	},
	"ip": {
		"ipv4": "210.76.74.180",
		"beginip": "210.76.64.0",
		"endip": "210.76.95.255",
		"trueip": 3528215220,
		"ipv6": "0000:0000:0000:0000:0000:ffff:d24c:4ab4"
	},
	"province": {
		"name": "广东省",
		"adcode": "440000",
		"lat": 23.125178,
		"lng": 113.280637
	},
	"city": {
		"name": "广州市",
		"adcode": "440100",
		"lat": 23.125178,
		"lng": 113.280637
	},
	"district": {
		"name": "未知",
		"adcode": "",
		"lat": "",
		"lng": ""
	}
}

安装

composer require liguangchun/ip -vvv

更新

composer update liguangchun/ip -vvv

删除

composer remove liguangchun/ip -vvv
MIT License Copyright (c) 2020 李光春 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

PHP Composer IP数据库 展开 收起
PHP 等 2 种语言
MIT
取消

发行版 (12)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/liguangchun/ip.git
git@gitee.com:liguangchun/ip.git
liguangchun
ip
ip
master

搜索帮助