Skip to content

mastermissing/datx-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"));

About

IPIP.net官方支持的解析datx格式的php代码

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%