File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,3 +60,12 @@ IP小秘书:http://www.cz88.net/ip
6060金狐 QQ:486126 EMail:admin@cz88.net
6161
6262
63+ ============================================================
64+
65+ ip-database 协议简述
66+
67+ 1,可以自由使用解析程序,但务必在程序内标明来源。https://github.com/itbdw/it-database
68+ 2,不保证任何准确性,应当知晓方可使用
69+ 3,仅供学习和娱乐用,如被用作违法事宜,本人均不承担任何责任
70+ 4,其它合理性解释权利归本人所有
71+
Original file line number Diff line number Diff line change 1616
1717## 使用说明
1818
19- 目前存在2.x版本(稳定版)和3.x版本(支持ipv6版)
2019
21- 当前版本为3.x,如需要2.x请访问 https://github.com/itbdw/ip-database/tree/2.x
20+ 当前版本为3.x(ipv4+ipv6) ,如需要2.x稳定版请访问 https://github.com/itbdw/ip-database/tree/2.x
2221
23- 目前3.x无缝兼容2.x版本,可直接升级 ,但需做好验证。
22+ 目前3.x无缝兼容2.x版本,理论上可直接升级 ,但需做好验证。
2423
25- 目前3.x已完成的功能有
26-
27- - 支持ipv6
28- - 2.x 平滑升级
29-
30- 计划完成的功能有
31-
32- [ ] 解析民政部地区码,以便返回更加精确的城市信息;同时可携带其他信息,如地区码、经纬度等
3324
3425```
3526composer require 'itbdw/ip-database' dev-3.x
Original file line number Diff line number Diff line change 1+ ## update log
2+
3+
4+
5+ ```
6+ IP 地理位置查询类
7+
8+ 2021-04-10 赵彬言
9+
10+ 1,3.x 支持ipv6,无缝衔接2.x
11+
12+ 3.x已完成的功能有
13+
14+ - 支持ipv6
15+ - 2.x 平滑升级
16+
17+ 计划完成的功能有
18+
19+ - 解析民政部地区码,以便返回更加精确的城市信息;同时可携带其他信息,如地区码、经纬度等
20+
21+
22+
23+ 2020-10-30 赵彬言
24+
25+ 1,大更新,重构代码。兼容历史代码。希望能支持ipv6
26+
27+ 2019-07-25 赵彬言
28+
29+ 1,增加自动更新功能,参考 https://blog.shuax.com/archives/QQWryUpdate.html 感谢 https://github.com/itbdw/ip-database/issues/10
30+
31+ 2017-09-12 赵彬言
32+
33+ 1,缩减返回数据,去掉字段 remark smallarea beginip endip
34+ 2,将调用改为单例模式,保证只读取一次文件
35+ 3,修复 bug,直接将返回 gbk 编码内容转为 utf-8,移除编码隐患
36+ 4,去掉了"省"标志,变成了如 中国 浙江 杭州市 这样的数据
37+
38+ 2017-09-04 赵彬言
39+
40+ 1,更新 composer 相对路径,bug fix
41+
42+ 2015-06-11 赵彬言
43+
44+ 1,支持composer 方式引用
45+ 2,更新 is_valid_ip 实现
46+
47+ 2013-11-10 赵彬言
48+
49+ 1,优化,新增支持到市区,县城
50+ 2,返回结构增加 smallarea,具体请看注释
51+
52+ 2012-10-21 赵彬言
53+
54+ 1,增加市,县显示
55+ 2,去掉不靠谱的自动转码
56+ 先统一改为 GBK,最后再做转换解决编码问题
57+
58+ 2012-08-15 赵彬言
59+
60+ 1,更新为 PHP5 的规范
61+ 2,增加 wphp_ip2long 方法
62+ 3,增加 get_province 方法
63+ 4,增加 get_isp 方法
64+ 5,增加 is_valid_ip 方法
65+
66+ ```
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments