PHPackages                             halo123450/zxipdb - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. halo123450/zxipdb

ActiveLibrary

halo123450/zxipdb
=================

IPv4/IPv6 offline address database

v1.1.5(1y ago)3276↓100%MITPHPPHP &gt;=5.6

Since Jul 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/halo123450/zxipdb-php)[ Packagist](https://packagist.org/packages/halo123450/zxipdb)[ Docs](https://ip.s-3.cn)[ RSS](/packages/halo123450-zxipdb/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)DependenciesVersions (12)Used By (0)

### Usage/使用方法

[](#usage使用方法)

```
composer require halo123450/zxipdb
```

Your code/你的业务代码

```
$result = \Halo123450\Zxipdb\IPTool::query('8.8.8.8');
/*
$result = [
    "start" => "8.8.8.8"
    "end" => "8.8.8.8"
    "addr" => array:2 [
        0 => "美国"
        1 => "加利福尼亚州圣克拉拉县山景市谷歌公司DNS服务器"
    ]
    "disp" => "美国 加利福尼亚州圣克拉拉县山景市谷歌公司DNS服务器"
]
 */
$result = \Halo123450\Zxipdb\IPTool::query('240e:e9:8819:0:3::3f9');
/*
$result = [
    "start" => "240e:e9:8800::"
    "end" => "240e:e9:8fff:ffff::"
    "addr" => array:2 [
        0 => "中国江苏省苏州市"
        1 => "中国电信IDC"
    ]
    "disp" => "中国江苏省苏州市 中国电信IDC"
]
 */
$valid = \Halo123450\Zxipdb\IPv4Tool::isValidAddress('114.114.114.114');
/*
$valid = true;
 */
$valid = \Halo123450\Zxipdb\IPv6Tool::isValidAddress('240e:e9:8819:0:3::3f9');
/*
$valid = true;
*/
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~87 days

Recently: every ~149 days

Total

9

Last Release

691d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce759fe4ee4215549c7d020308d6bea00e8b268de51c87056d6a1e40b8a95e70?d=identicon)[halo123450](/maintainers/halo123450)

---

Top Contributors

[![halo123450](https://avatars.githubusercontent.com/u/45340765?v=4)](https://github.com/halo123450 "halo123450 (13 commits)")

---

Tags

ipv4ipv6ipv6ipv4

### Embed Badge

![Health badge](/badges/halo123450-zxipdb/health.svg)

```
[![Health](https://phpackages.com/badges/halo123450-zxipdb/health.svg)](https://phpackages.com/packages/halo123450-zxipdb)
```

###  Alternatives

[zoujingli/ip2region

ip2region v3.0 for PHP - 企业级 IP 地理位置查询库，支持 IPv4 和 IPv6，多种缓存策略，零依赖，开箱即用

1.4k437.1k56](/packages/zoujingli-ip2region)[mlocati/ip-lib

Handle IPv4, IPv6 addresses and ranges

3126.4M44](/packages/mlocati-ip-lib)[s1lentium/iptools

PHP Library for manipulating network addresses (IPv4 and IPv6)

2446.2M24](/packages/s1lentium-iptools)[darsyn/ip

An immutable IP Address value object that provides several different notations, including helper functions.

2572.0M20](/packages/darsyn-ip)[rlanvin/php-ip

IPv4/IPv6 manipulation library for PHP

180738.8k11](/packages/rlanvin-php-ip)[longman/ip-tools

PHP IP Tools for manipulation with IPv4 and IPv6

147245.6k6](/packages/longman-ip-tools)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
