Download the PHP package itbdw/ip-database without Composer

On this page you can find all versions of the php package itbdw/ip-database. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ip-database

说明

这套识别程序的数据库是免费IP数据库、IP离线地址库。支持将IP转化为结构化的国家、省、市、县、运营商、地区信息

0,该系统是离线的,代码内已经包含IPV4+IPV6离线包。

1,IPV4数据库基于纯真IP库,IP地址纠错相关和最新地址获取请直接去纯真官网,具体见最下方链接。IPV6数据库见最下方链接。

2,纯真IP识别算法来源网络。

3,结构化程序来自我2012年的脑洞。

纯真IP数据存储时,并不是结构化的,因此 结构化程序 解析出来有误差在所难免,国内 ip 可以识别出省份,基本可以识别出市。运营商、县数据看运气。

使用说明

当前版本为3.x(ipv4+ipv6),如需要2.x请访问 https://github.com/itbdw/ip-database/tree/2.x

目前3.x无缝兼容2.x版本,理论上可直接升级。

响应

获取成功

异常

本地测试测试

提高下载速度

建议腾讯云加速 https://mirrors.cloud.tencent.com/help/composer.html

原因 https://github.com/itbdw/ip-database/issues/42

赞助喝口水

这个项目也是多个日夜思考的结果,如果觉得对你有帮助,小手一抖也是感谢的。

手动更新离线包

1,纯真IP库(需要安装 EXE ,解压获得离线包) https://www.cz88.net/help?id=free

2,IPV6(目前已经不再提供离线下载包) https://ip.zxinc.org/ipquery/


All versions of ip-database with dependencies

PHP Build Version
Package Version
Requires php Version *
ext-mbstring Version *
ext-json Version *
ext-iconv Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package itbdw/ip-database contains the following files

Loading the files please wait ....