PHPackages                             ipshow/ipshow - 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. ipshow/ipshow

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

ipshow/ipshow
=============

A high-performance IP location lookup library

v1.0.0(1y ago)120↓100%MITPHPPHP &gt;=7.2

Since Nov 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/showx/ipshow)[ Packagist](https://packagist.org/packages/ipshow/ipshow)[ RSS](/packages/ipshow-ipshow/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

ipshowIP地址查询库
=============

[](#ipshowip地址查询库)

一个高性能的IP地址地理位置查询库，支持快速查询IP对应的国家、省份和城市信息。

特性
--

[](#特性)

- 高性能：使用二进制文件存储，支持快速检索
- 低内存：采用稀疏索引，只在内存中保留必要的索引数据
- 并发安全：支持多进程/多线程并发查询
- 中文支持：直接返回中文地理位置信息
- 调试功能：可选的调试输出功能

安装
--

[](#安装)

通过 Composer 安装：

```
composer require ipshow/ipshow
```

使用方法
----

[](#使用方法)

```
use IpShow\IpShow;

$ip = '1.1.1.1';
$ipFinder = new IpShow();
$location = $ipFinder->find($ip);

if ($location) {
    echo "国家: " . $location['country'] . "\n";
    echo "省份: " . $location['province'] . "\n";
    echo "城市: " . $location['city'] . "\n";
} else {
    echo "未找到此IP的位置信息\n";
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 87.5% 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

528d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/96ca235e17f91b10c09235c1559ed7526d94232a552758be8ef25dec92668b19?d=identicon)[show](/maintainers/show)

---

Top Contributors

[![ddsyou](https://avatars.githubusercontent.com/u/6662555?v=4)](https://github.com/ddsyou "ddsyou (7 commits)")[![showx](https://avatars.githubusercontent.com/u/1758264?v=4)](https://github.com/showx "showx (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[jpunanua/yii2-seotools

Component and module to manage unique seo title, description, keywords and unique text associated with a page

174.2k](/packages/jpunanua-yii2-seotools)

PHPackages © 2026

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