PHPackages                             gclinux/country2ip - 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. gclinux/country2ip

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

gclinux/country2ip
==================

输入两位国家代号,返回该国家的ip

1.02.2(3y ago)024MITPHP

Since Dec 18Pushed 3y ago1 watchersCompare

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

READMEChangelog (5)DependenciesVersions (6)Used By (0)

intuition
---------

[](#intuition)

通过ipip.net 反向解释得出的国家 -&gt; IP库,用于生成对应国家的IP

#### install:

[](#install)

本类支持composer直接安装

```
composer require gclinux/country2ip
```

#### how to use:

[](#how-to-use)

请参考里面的test文件

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~341 days

Total

5

Last Release

1337d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d936ead2ff5263eab7482a3ae58a6ba348bb93f7b9add32e4f4a225161ec95f?d=identicon)[gclinux](/maintainers/gclinux)

---

Top Contributors

[![gclinux](https://avatars.githubusercontent.com/u/4175914?v=4)](https://github.com/gclinux "gclinux (3 commits)")[![etaoism](https://avatars.githubusercontent.com/u/58493006?v=4)](https://github.com/etaoism "etaoism (1 commits)")

### Embed Badge

![Health badge](/badges/gclinux-country2ip/health.svg)

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

PHPackages © 2026

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