# ip2region **Repository Path**: xcmrfc/ip2region ## Basic Information - **Project Name**: ip2region - **Description**: 使用thinkphp、ip2region合成的IP地址转换网站 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-07-29 - **Last Updated**: 2024-05-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ip2region =============== ip地址转换区域处理 使用 [Ip2region](https://github.com/lionsoul2014/ip2region) 进行处理 > 运行环境要求PHP7.1+。 ## 安装 ~~~ composer i ~~~ ## 配置数据库及表结构 ./config/schema.sql ## 运行 ~~~ php think run ~~~ ## 调用方式 ~~~ ~/ip/49.72.199.228 ~~~ ## 返回结果 ~~~ {"code":0,"ip":"49.72.199.228","country":"中国","region":"江苏","city":"苏州","isp":"电信"} ~~~