PHPackages                             xdm/ipnet - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. xdm/ipnet

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

xdm/ipnet
=========

Obtain IP address details

v0.0.2(8y ago)116MITPHP

Since Aug 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/markbest/ipnet)[ Packagist](https://packagist.org/packages/xdm/ipnet)[ RSS](/packages/xdm-ipnet/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

使用方法
----

[](#使用方法)

- 1、composer require "Xdm/ipnet"
- 2、在config/app中添加Xdm\\Ipnet\\IpnetServiceProvider::class
- 3、执行命令php artisan vendor:publish --provider="Xdm\\Ipnet\\IpnetServiceProvider", 生成配置文件ipnet.php
- 4、在ipnet.php文件中配置token，token为付费购买后获得
- 5、执行命令php artisan ipnet:update下载解析IP需要的数据源文件
- 5、调用方法：

```
use Xdm\Ipnet\Ipx;
use Xdm\Ipnet\IpxLocation;
Ipx::find($ip);
IpxLocation::find($ip);

```

特色功能
----

[](#特色功能)

- 扩展包提供两种数据源文件的解析：dat和datx，程序会自动识别最新的数据源文件格式来进行解析
- 配置文件中可以设置保存数据源文件的版本数量
- 解析IP的结果使用cache缓存，查询IP会优先从缓存中获取
- 两种解析IP的方式可以自选

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

3200d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/10b9f1917ca3e49faf7dbc917e52fd1d3b3e9c4283ebc146e6bf775e55436e83?d=identicon)[markbest](/maintainers/markbest)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/xdm-ipnet/health.svg)

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

###  Alternatives

[prooph/standard-projections

Standard Projections for Prooph EventStore

1526.7k](/packages/prooph-standard-projections)[it-quasar/atol-online

Библиотека для работы с АТОЛ Онлайн

119.4k](/packages/it-quasar-atol-online)

PHPackages © 2026

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