PHPackages                             kqtec/iplocationzh - 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. kqtec/iplocationzh

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

kqtec/iplocationzh
==================

基于纯真IP库的,查询IP归属地PHP库，获取客户端ip地址

v1.0.1(7y ago)11151MITPHP

Since May 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/kqtec/iplocationzh)[ Packagist](https://packagist.org/packages/kqtec/iplocationzh)[ RSS](/packages/kqtec-iplocationzh/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (3)Used By (0)

iplocationzh
============

[](#iplocationzh)

这是一个能够通过 Ip，获取该 IP 所在的位置，例如通过 ip：171.12.10.156 可以获得是 中国河南郑州，以及中国行政区划代码(支持到市级), 同样能获得国外的地址，但是没有国内详细。

Usage
=====

[](#usage)

```
require 'vendor/autoload.php';  
use Kqtec\IpLocationZh\Ip;  
$add=Ip::get_real_ip()?:'171.12.10.156'
var_dump(Ip::find($add));

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

2

Last Release

2563d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e963bc9a9ef7afa97330b6028b3a781c065bd3683714701afaac39900efe27a4?d=identicon)[zhichen92](/maintainers/zhichen92)

---

Top Contributors

[![zhichen92](https://avatars.githubusercontent.com/u/18463213?v=4)](https://github.com/zhichen92 "zhichen92 (6 commits)")

### Embed Badge

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

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

###  Alternatives

[justintadlock/hybrid-breadcrumbs

A powerful breadcrumb script for inclusion with WordPress themes.

464.2k](/packages/justintadlock-hybrid-breadcrumbs)

PHPackages © 2026

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