# ip **Repository Path**: flywit/ip ## Basic Information - **Project Name**: ip - **Description**: PHP Composer IP数据库 - **Primary Language**: PHP - **License**: MIT - **Default Branch**: master - **Homepage**: https://packagist.org/packages/liguangchun/ip - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2021-05-29 - **Last Updated**: 2021-05-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README dtApp Logo

IP数据库

📦 IP数据库 PHP扩展包 [![Latest Stable Version](https://poser.pugx.org/liguangchun/ip/v/stable)](https://packagist.org/packages/liguangchun/ip) [![Latest Unstable Version](https://poser.pugx.org/liguangchun/ip/v/unstable)](https://packagist.org/packages/liguangchun/ip) [![Total Downloads](https://poser.pugx.org/liguangchun/ip/downloads)](https://packagist.org/packages/liguangchun/ip) [![License](https://poser.pugx.org/liguangchun/ip/license)](https://packagist.org/packages/liguangchun/ip) [![PHP Version](https://img.shields.io/badge/php-%3E%3D7.0-8892BF.svg)](https://packagist.org/packages/GC0202/ip) [![Dependency Status](https://david-dm.org/GC0202/ip.svg)](https://david-dm.org/GC0202/ip) [![Dependency Status Dev](https://david-dm.org/GC0202/ip/dev-status.svg)](https://david-dm.org/GC0202/ip?type=dev) [![GitHub last commit](https://img.shields.io/github/last-commit/GC0202/ip?logo=github)](https://github.com/GC0202/ip/commits) [![GitHub commit activity](https://img.shields.io/github/commit-activity/m/GC0202/ip)](https://github.com/GC0202/ip/commits) [![GitHub contributors](https://img.shields.io/github/contributors/GC0202/ip?logo=github&label=developers)](https://github.com/GC0202/ip/graphs/contributors) ## 依赖环境 1. PHP7.0 版本及以上(低版本和7.4版本未做兼容处理!) ## 数据源 - datav ## 支持库 - 纯真数据库 - 高德地图 - 淘宝 - 百度搜索 - 腾讯地图 - 太平洋 - 搜狐 - 好搜 - 新浪 - IP Geolocation - extreme-ip - ipip - 网易 - 哔哩哔哩 - 阿里云 ## 应用示例 - [数据应用](https://www.dtapp.net/ "数据应用") - [数据分析](https://data.dtapp.net/ "数据分析") - [数据工具](https://tool.dtapp.net/ "数据工具") - [新型冠状病毒肺炎](https://data.dtapp.net/pneumonia/index.html "新型冠状病毒肺炎") - [广东省建设项目数据](https://data.dtapp.net/gdbuild/index.html "广东省建设项目数据") ## 使用文档 [文档链接](https://apidoc.dtapp.net/web/#/8 "文档链接") ## 计划支持 - 纯真数据库运营商优化 - 获取省份、城市、地区信息列表 ## 纯真数据库返回类型 ``` json { "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": "" } } ``` ## 安装 ```text composer require liguangchun/ip -vvv ``` ## 更新 ```text composer update liguangchun/ip -vvv ``` ## 删除 ```text composer remove liguangchun/ip -vvv ```