PHPackages                             libo/tp5-ip-loc - 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. libo/tp5-ip-loc

ActiveThink-extend[Utility &amp; Helpers](/categories/utility)

libo/tp5-ip-loc
===============

基于ThinkPHP5.1框架的ip地址查询库，可以针对ip地址进行查询，返回省份城市

v1.3.1(7y ago)148MITPHPPHP &gt;=5.4

Since Feb 22Pushed 7y agoCompare

[ Source](https://github.com/niubea/tp5-ip-loc)[ Packagist](https://packagist.org/packages/libo/tp5-ip-loc)[ Docs](http://www.niubea.com)[ RSS](/packages/libo-tp5-ip-loc/feed)WikiDiscussions master Synced 2mo ago

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

tp5-ip-loc
==========

[](#tp5-ip-loc)

支持框架：ThinkPHP 5.1
基于ThinkPHP5.1框架的ip地址查询库，可以针对ip地址进行查询，返回省份城市
使用方法：

1. 先在项目根目录composer require libo/tp5-ip-loc ；
2. 在需要用到根据IP查地区的控制器里先use进来，代码如下：
    use libo\\tp5\_ip\_loc\\IPLoc;
3. 在需要用到IP转地区的方法里使用以下代码：
    $aa = new IPLoc();
    $ipcity=$aa::find("113.111.183.221");
    echo '```
    '.print_r($ipcity).'
    ```

    ';

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

Total

6

Last Release

2631d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/293be1ed717c3ba946ba0cb6df7807814d3edf357a63f9675d08646344326e11?d=identicon)[pollylee](/maintainers/pollylee)

---

Top Contributors

[![niubea](https://avatars.githubusercontent.com/u/46312081?v=4)](https://github.com/niubea "niubea (7 commits)")

---

Tags

thinkphp5libotp5-ip-loc

### Embed Badge

![Health badge](/badges/libo-tp5-ip-loc/health.svg)

```
[![Health](https://phpackages.com/badges/libo-tp5-ip-loc/health.svg)](https://phpackages.com/packages/libo-tp5-ip-loc)
```

###  Alternatives

[zzstudio/think-addons

The ThinkPHP6 Addons Package

1518.6k](/packages/zzstudio-think-addons)

PHPackages © 2026

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