PHPackages                             wapele/ipaddress - 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. wapele/ipaddress

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

wapele/ipaddress
================

The ThinkPHP5 ipaddress

2.1.0(10y ago)029Apache-2.0PHP

Since Jul 23Pushed 10y ago1 watchersCompare

[ Source](https://github.com/wapele/ipaddress)[ Packagist](https://packagist.org/packages/wapele/ipaddress)[ RSS](/packages/wapele-ipaddress/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)DependenciesVersions (2)Used By (0)

ipaddress
=========

[](#ipaddress)

获取IP地址库 thinkphp5 的ipaddress 库 #安装

> composer require wapele/ipaddress

\#使用 //方式1 return array \\think\\Ipaddress::getipaddress("112.17.247.154"); //方式2 return string $ip=new \\think\\Ipaddress(\["type"=&gt;"sina",result"=&gt;"string"\]); $ip::getipaddress("112.17.247.154"); //方式3 return array $ip=new \\think\\Ipaddress(\["type"=&gt;"baidu"\]); $ip::getipaddress(); //方式4 return array $ip=new \\think\\Ipaddress(\["type"=&gt;"local"\]); $ip::getipaddress();

ps:第一次使用git还不习惯

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3675d ago

### Community

Maintainers

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

---

Top Contributors

[![wapele](https://avatars.githubusercontent.com/u/17931469?v=4)](https://github.com/wapele "wapele (23 commits)")

### Embed Badge

![Health badge](/badges/wapele-ipaddress/health.svg)

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

###  Alternatives

[ntavelis/mercure-php

Publish messages to mercure hub

3017.1k](/packages/ntavelis-mercure-php)

PHPackages © 2026

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