PHPackages                             edshop/ip2region - 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. edshop/ip2region

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

edshop/ip2region
================

Ip2Region for PHP

04PHP

Since Nov 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/edshop/ip2region)[ Packagist](https://packagist.org/packages/edshop/ip2region)[ RSS](/packages/edshop-ip2region/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

#### 介绍

[](#介绍)

{**以下是码云平台说明，您可以替换此简介**码云是 OSCHINA 推出的基于 Git 的代码托管平台（同时支持 SVN）。专为开发者提供稳定、高效、安全的云端软件开发协作平台

### ip2region 使用

[](#ip2region-使用)

```
$ip2region = new Ip2Region();

$ip = '101.105.35.57';

$info = $ip2region->btreeSearch($ip);

var_export($info, true);

// array (
//     'city_id' => 2163,
//     'region' => '中国|华南|广东省|深圳市|鹏博士',
// )
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/57340937?v=4)[edshop](/maintainers/edshop)[@edshop](https://github.com/edshop)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[pharaonic/php-dot-array

Access array data quickly/easily using dot-notation and asterisk.

1011.6k3](/packages/pharaonic-php-dot-array)

PHPackages © 2026

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