PHPackages                             xlt/ipdisplaycn - 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. xlt/ipdisplaycn

ActiveFlarum-extension[Utility &amp; Helpers](/categories/utility)

xlt/ipdisplaycn
===============

Geolocation for Flarum

v1.0.0(7mo ago)081MITPHPPHP ^8.0

Since Nov 19Pushed 7mo agoCompare

[ Source](https://github.com/XiaoLuoTian189/ipdisplay-cn)[ Packagist](https://packagist.org/packages/xlt/ipdisplaycn)[ RSS](/packages/xlt-ipdisplaycn/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

XLT IP
======

[](#xlt-ip)

[![extiverse](https://camo.githubusercontent.com/dbd22825c133205a7ee5cc93838be7eca516506b66c85f0d1bf09e79db7db25e/68747470733a2f2f6578746976657273652e636f6d2f657874656e73696f6e2f6762636c2f7573657269702f6f70656e2d67726170682d696d616765)](https://camo.githubusercontent.com/dbd22825c133205a7ee5cc93838be7eca516506b66c85f0d1bf09e79db7db25e/68747470733a2f2f6578746976657273652e636f6d2f657874656e73696f6e2f6762636c2f7573657269702f6f70656e2d67726170682d696d616765)感谢这位程序员的开源

> 在帖子下方显示发帖者的 IP 地址

截图
--

[](#截图)

[![ss](https://raw.githubusercontent.com/GBCLStudio/userip/main/screenshot.png)](https://raw.githubusercontent.com/GBCLStudio/userip/main/screenshot.png)

安装
--

[](#安装)

```
composer require xlt/ipdisplaycn:"*"
php flarum migrate
```

更新
--

[](#更新)

```
composer update xlt/ipdisplaycn:"*"
php flarum cache:clear
php flarum migrate
```

卸载
--

[](#卸载)

```
composer remove xlt/ipdisplaycn
php flarum cache:clear
```

使用方法
----

[](#使用方法)

您只需在管理面板中启用此扩展即可。:)

特性
--

[](#特性)

- 支持使用 CDN 的网站
- 简洁、详细、易懂的风格
- 无 Bug（也许？）

扩展
--

[](#扩展)

您可以轻松扩展此扩展以支持不同的 API 提供商，只需按照以下步骤操作：

- 在您的新扩展中，将 `xlt/ipdisplaycn` 作为依赖项引入
- 定义一个实现 `GBCLStudio\GeoIp\Api\GeoIpInterface` 并继承 `GBCLStudio\GeoIp\Api\Service\BaseService` 的新服务
- 在您的新扩展的 extend.php 中注册服务：`new GBCLStudio\GeoIp\Extend\ApiProvider(MyNewService::class);`
- 在 `xlt-ipdisplaycn` 命名空间下提供所需的翻译，例如：`xlt-ipdisplaycn.admin.service.YOUR_NEW_EXTENSION.label`，具体翻译文本可在[此处](https://github.com/GBCLStudio/userip/blob/502fcd12dca2a07c29fc5b008026fb5b615dc246/resources/locale/en.yml#L9)找到

说明
--

[](#说明)

内置 IP 域名 API 由 [ip.sb](https://ip.sb) 和 [IpInfo](https://ipinfo.io) 提供

参考了以下项目的代码：fof/geoip, fof/oauth

在 [afdian](http://afdian.com/a/GBCLStudio) 支持我的工作

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance63

Regular maintenance activity

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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

228d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/22faea825e0f78c1ff3f014255a661aee91000029680c6a1a674a9163a2a488d?d=identicon)[XiaoLuoTian189](/maintainers/XiaoLuoTian189)

---

Top Contributors

[![XiaoLuoTian189](https://avatars.githubusercontent.com/u/239265989?v=4)](https://github.com/XiaoLuoTian189 "XiaoLuoTian189 (2 commits)")

---

Tags

geoipflarum

### Embed Badge

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

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

###  Alternatives

[flarum-lang/russian

Russian language pack for Flarum.

12128.3k](/packages/flarum-lang-russian)[oat-sa/tao-core

TAO core extension

66143.7k124](/packages/oat-sa-tao-core)[fof/sitemap

Generate a sitemap

1899.7k2](/packages/fof-sitemap)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[fof/discussion-language

Specify the language a discussion is written in &amp; sort by language

1034.8k4](/packages/fof-discussion-language)

PHPackages © 2026

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