PHPackages                             trylife/yii2-ip-access - 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. trylife/yii2-ip-access

ActiveLibrary

trylife/yii2-ip-access
======================

yii2 yii2-ip yii2-ip-access

1.0.1(9y ago)281[1 PRs](https://github.com/trylife/yii2-ip-access/pulls)MITPHP

Since Mar 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/trylife/yii2-ip-access)[ Packagist](https://packagist.org/packages/trylife/yii2-ip-access)[ RSS](/packages/trylife-yii2-ip-access/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

yii2-ip-access IP访问限制
=====================

[](#yii2-ip-access-ip访问限制)

Installation
------------

[](#installation)

```
composer require trylife/yii2-ip-access

```

Configure
---------

[](#configure)

### 迁移数据

[](#迁移数据)

```
./yii migrate --migrationPath=@vendor/trylife/yii2-ip-access/migrations

```

### 配置模块

[](#配置模块)

```
'modules' => [
    ...
    'ip-access' => [
        'class' => 'trylife\ipAccess\Module',
        'controllerMap' => [
            'ping' => [
                'class' => 'trylife\ipAccess\controllers\PingController',
                'accessKey' => 'jGajhDpsy2kKqDslFNcFt0zNF17BYqnT',
            ],
        ],
    ],
    ...
],

```

### crontab 定时访问

[](#crontab-定时访问)

```
curl yourDomain/ip-access/ping/ping?accessKey=jGajhDpsy2kKqDslFNcFt0zNF17BYqnT

```

### 白名单访问控制

[](#白名单访问控制)

```
    'as IpWhiteListBehavior' => [
        'class' => 'trylife\ipAccess\behaviors\IpWhiteListBehavior',
        'open' => true,
        'allowIps' => [
            '127.0.0.1',
        ],
        'allowRoutes' => [
            'ip-access/ping/ping'
        ],
    ],

```

###  Health Score

28

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

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

Every ~1 days

Total

3

Last Release

3290d ago

Major Versions

0.01 → 1.0.02017-03-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/31e645bb4fa72888a15a5b52125218e10560fe3d03d407408d03ee201df4cbd1?d=identicon)[trylife](/maintainers/trylife)

---

Top Contributors

[![trylife](https://avatars.githubusercontent.com/u/8101926?v=4)](https://github.com/trylife "trylife (8 commits)")

---

Tags

yii2vuetrylifeyii2-ipyii2-ip-access

### Embed Badge

![Health badge](/badges/trylife-yii2-ip-access/health.svg)

```
[![Health](https://phpackages.com/badges/trylife-yii2-ip-access/health.svg)](https://phpackages.com/packages/trylife-yii2-ip-access)
```

###  Alternatives

[aki/yii2-vue

for yii2 web application

7010.1k1](/packages/aki-yii2-vue)[prawee/yii2-vuejs

Vue.js library for Yii2

1712.1k](/packages/prawee-yii2-vuejs)[colee/yii2-vue

Vue.js library for Yii2 framework

1241.0k1](/packages/colee-yii2-vue)[omnilight/yii2-vuejs

Vue.js library for Yii2 framework

186.0k](/packages/omnilight-yii2-vuejs)

PHPackages © 2026

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