Download the PHP package ipip/datx without Composer
On this page you can find all versions of the php package ipip/datx. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor ipip
Package datx
Short Description IPIP.net官方支持的IP数据库datx格式解析库
License Apache-2.0
Homepage https://www.ipip.net
Package datx
Short Description IPIP.net官方支持的IP数据库datx格式解析库
License Apache-2.0
Homepage https://www.ipip.net
Please rate this library. Is it a good library?
Informations about the package datx
重要提示
datx格式将全面升级为ipdb格式 IPDB格式解析代码
ipdb 格式优点
- 可同时支持IPv4与IPv6
- 可同时支持中文与英文
- 查询性能大幅度提高
datx-php
IPIP.net官方支持的解析datx格式的php代码
安装说明
composer require ipip/datx
使用示例
require_once __DIR__ . '/vendor/autoload.php';
$bs = new ipip\datx\City("/path/to/mydata4vipday4.datx"); // 城市级数据库
var_export($bs->find("223.220.233.0"));
$bs = new ipip\datx\District("/path/to/quxian.datx"); //
var_export($bs->find("1.12.29.0"));
$bs = new ipip\datx\BaseStation("/path/to/station_ip.datx");
var_export($bs->find("223.220.233.0"));
All versions of datx with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package ipip/datx contains the following files
Loading the files please wait ....