PHPackages                             mrfeng/ipinfo - 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. [API Development](/categories/api)
4. /
5. mrfeng/ipinfo

ActiveYii2-extension[API Development](/categories/api)

mrfeng/ipinfo
=============

Get Ip Info API

016PHP

Since Jun 22Pushed 10y ago1 watchersCompare

[ Source](https://github.com/MRfeng85/yii2-ipinfo)[ Packagist](https://packagist.org/packages/mrfeng/ipinfo)[ RSS](/packages/mrfeng-ipinfo/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Ip 归属地查询

现整合了淘宝,腾讯,新浪三个查询API接口，后期会增加其他接口

安装步骤：

1、下载安装

```
	$ php composer.phar require mrfeng/ipinfo "*"
```

或者在composer.json中添加一下配置

```
	mrfeng/ipinfo "*"
```

然后运行

```
composer update
```

2、配置

```
return [
    'components' => [
            'ipinfo' => [
                // 淘宝API
                'class' => 'mrfeng\ipinfo\TaoBaoIpInfo',
        ]
    ],
];
```

或

```
return [
    'components' => [
            'ipinfo' => [
                // 腾讯API
                'class' => 'mrfeng\ipinfo\QQIpInfo',
        ]
    ],
];
```

或

```
return [
    'components' => [
            'ipinfo' => [
                // SINA API
                'class' => 'mrfeng\ipinfo\SinaIpInfo',
        ]
    ],
];
```

3、应用

```
	Yii::$app->ipinfo->getinfo('127.0.0.1');//查询指定的IP地址
```

会返回一个IP归属地的字符串

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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://www.gravatar.com/avatar/0fcca872a3a3bafcc6c9c2d722cdc8c8efb7f1aeb1a8e5feeb242018adab60aa?d=identicon)[MRfeng](/maintainers/MRfeng)

---

Top Contributors

[![mitang1378](https://avatars.githubusercontent.com/u/13391335?v=4)](https://github.com/mitang1378 "mitang1378 (4 commits)")[![MRfeng85](https://avatars.githubusercontent.com/u/19359412?v=4)](https://github.com/MRfeng85 "MRfeng85 (4 commits)")

### Embed Badge

![Health badge](/badges/mrfeng-ipinfo/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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