PHPackages                             rhilip/ipv6wry - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. rhilip/ipv6wry

Abandoned → [ritaswc/zx-ip-address](/?search=ritaswc%2Fzx-ip-address)ArchivedLibrary[Parsing &amp; Serialization](/categories/parsing)

rhilip/ipv6wry
==============

The Parser Library of ipv6wry.db in PHP

0.1.5(5y ago)769GPL-3.0-onlyPHPPHP ^7.0

Since Sep 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Rhilip/ipv6wry-php)[ Packagist](https://packagist.org/packages/rhilip/ipv6wry)[ RSS](/packages/rhilip-ipv6wry/feed)WikiDiscussions master Synced 1mo ago

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

ipv6wry-php
===========

[](#ipv6wry-php)

The Parser Library of ipv6wry.db in PHP

Built-in Database Update At
---------------------------

[](#built-in-database-update-at)

Library VersionIP Database Versionv0.1.0-v0.1.320190812v0.1.4-v0.1.520200506Install and Usage
-----------------

[](#install-and-usage)

- Install via `Composer`

```
composer require rhilip/ipv6wry
```

- Usage

```
require 'vendor/autoload.php';

use Rhilip\Ipv6Wry\IpLocation;

// Use Custom IP Database instead of Built-in
IpLocation::setDbPath($db_path);

// Search IPv6 Address and get Location information
IpLocation::searchIp($ipv6_address);
```

- Return (In JSON format)

If Success

```
{
  "ip":"2001:da8:200:900e:0:5efe:182.117.109.0",
  "area":"中国北京市 清华大学"
}
```

If Failed

```
{
  "error":"Input ip address is not in IPv6 format."
}
```

Update Database
---------------

[](#update-database)

This Library doesn't provide Database Update methods, But you can download Database from :

- Official Website :
- Auto-Sync Repo :

Changelog
---------

[](#changelog)

```
v0.1.3 Fix binarySearch() may too early to return
v0.1.2 Fix unpack error for 3 bytes string to int
v0.1.1 Fix IpLocation::setDbPath can't change self::$db_path when call twice before instance.
v0.1.0 Init Commit.

```

License
-------

[](#license)

- This Repo: [GPL-3.0-only](https://github.com/Rhilip/ipv6wry.db/blob/master/LICENSE)
- IP Database for `ipv6wry.db`:

```
本协议是用户（您）和ZX公司（zxinc.org）之间关于使用ZX IP地址数据库（本数据库）达成的协议。您安装或者使用本数据库的行为将视为对本协的接受及同意。除非您接受本协议，否则请勿下载、安装或使用本数据库，并请将本数据库从计算机中移除。

1. 本数据库是免费许可软件，不进行出售。你可以免费的复制，分发和传播本数据库，但您必须保证每一份复制、分发和传播都必须是未更改过的，完整和真实的。
2. 您作为个人使用本数据库。您只能对本数据库进行非商业性的应用。
3. 任何免费软件以及非商业性网站均可无偿使用本数据库，但在其说明上均应注明本数据库的名称和来源为“ZX IP地址数据库”。
4. 本数据库为免费共享软件。我们对本数据库产品不提供任何保证，不对任何用户因本数据库所遭遇到的任何理论上的或实际上的损失承担责任，不对用户使用本数据库造成的任何后果承担责任。
5. 本数据库所收集的信息，均是从网上收集而来。数据库只包含IP与其对应的地址，但是这些数据不会涉及您的个人信息，因此也不会侵害您的隐私。
6. 欢迎任何人为我们提供正确详尽的IP地址。可登录网站（http://ip.zxinc.org）或论坛（http://bbs.zxinc.org）提交正确的IP与地址，以便我们修正并提高本数据库IP地址数据的准确性。

		ZX公司（zxinc.org）版权所有，保留一切解释权利 !

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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 ~55 days

Recently: every ~68 days

Total

6

Last Release

2149d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13842140?v=4)[Rhilip](/maintainers/Rhilip)[@Rhilip](https://github.com/Rhilip)

---

Top Contributors

[![Rhilip](https://avatars.githubusercontent.com/u/13842140?v=4)](https://github.com/Rhilip "Rhilip (8 commits)")

---

Tags

geogeoipipv6ipv6wrygeoipChinaipv6wry

### Embed Badge

![Health badge](/badges/rhilip-ipv6wry/health.svg)

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

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M283](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M226](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M63](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M343](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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