PHPackages                             roypeng/china-ip-helper - 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. roypeng/china-ip-helper

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

roypeng/china-ip-helper
=======================

A PHP China ip helper, it can distinguish china ips from ips

v0.1.0(3y ago)0242PHPPHP &gt;=7.4

Since Jan 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/pon50895/china-ip-helper)[ Packagist](https://packagist.org/packages/roypeng/china-ip-helper)[ RSS](/packages/roypeng-china-ip-helper/feed)WikiDiscussions master Synced 1mo ago

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

china-ip-helper
===============

[](#china-ip-helper)

using china ip helper to help you check ip, it give you 2 results: "cn" or "other" that's all, having fun.

```
$ip = "8.8.8.8"; // google ip
$ipHelper = new ChinaIpHelper/IpHelper();
$ipHelper->checkIpCountry($ip); // other

$chinaIp = "1.0.1.0"; // example china ip
$ipHelper->checkIpCountry($ip); // cn

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1222d ago

### Community

Maintainers

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

---

Top Contributors

[![pon50895](https://avatars.githubusercontent.com/u/41343762?v=4)](https://github.com/pon50895 "pon50895 (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/roypeng-china-ip-helper/health.svg)

```
[![Health](https://phpackages.com/badges/roypeng-china-ip-helper/health.svg)](https://phpackages.com/packages/roypeng-china-ip-helper)
```

###  Alternatives

[nyg/holiday

查询是否节假日 农历 节气 中国 2倍工资 3倍工资

226.5k](/packages/nyg-holiday)[soup/paginator

Paginator is a simple class that allows you to create pagination. It doesn't require any database connection. It is compatible with Twitter's Bootstrap Framework, by using the CSS class pagination that is also attached.

351.5k](/packages/soup-paginator)[components/jquery-htmlclean

HTML Clean plug-in for jQuery

183.1k1](/packages/components-jquery-htmlclean)

PHPackages © 2026

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