PHPackages                             light/yii2-offline - 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. light/yii2-offline

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

light/yii2-offline
==================

offline action

1.0.0(10y ago)210MITPHP

Since Dec 29Pushed 10y ago1 watchersCompare

[ Source](https://github.com/lichunqiang/offline)[ Packagist](https://packagist.org/packages/light/yii2-offline)[ RSS](/packages/light-yii2-offline/feed)WikiDiscussions master Synced 3w ago

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

yii2-offline
============

[](#yii2-offline)

offline action

[![Build Status](https://camo.githubusercontent.com/0d44840e5354cfb4910117d42e486f26b92be54524080820019e524131e1ff6b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c696368756e7169616e672f6f66666c696e652e7376673f7374796c653d666c61742d737175617265)](http://travis-ci.org/lichunqiang/offline)[![version](https://camo.githubusercontent.com/ce4fb35478acb3ddb0df07312bb3f71845e9b28685eac4b22ccb783a8f982798/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c696768742f796969322d6f66666c696e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/light/yii2-offline)[![Download](https://camo.githubusercontent.com/41d0595cd9c1c7f32be50f9703a2dadcbea0233b3299f0ef200c123d6a08a78a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c696768742f796969322d6f66666c696e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/light/yii2-offline)[![Contact](https://camo.githubusercontent.com/75bf8da95e146782f05a9a4c946f35fed67adbea1b2bf3c15eef0f69be64c8d8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f776569626f2d406368756e7169616e672d626c75652e7376673f7374796c653d666c61742d737175617265)](http://weibo.com/chunqiang)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist light/yii2-offline "*"

```

or add

```
"light/yii2-offline": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
public function actions()
{
    return [
        'offline' => [
            'class' => 'light\Offline\OfflineAction',
            'title' => '维护中',
            'description' => '服务器正在维护中,  请稍后访问',
        ]
    ];
}
```

Your `config` file:

```
...
'catchAll' => ['site/offline']
...
```

License
-------

[](#license)

[![MIT](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

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

3835d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ead2ef2c9862aa3d75a97de86af1e3cfa919886e8981bf0808cddd93f563777?d=identicon)[light](/maintainers/light)

---

Top Contributors

[![lichunqiang](https://avatars.githubusercontent.com/u/2433916?v=4)](https://github.com/lichunqiang "lichunqiang (5 commits)")

---

Tags

yii2extensionoffline

### Embed Badge

![Health badge](/badges/light-yii2-offline/health.svg)

```
[![Health](https://phpackages.com/badges/light-yii2-offline/health.svg)](https://phpackages.com/packages/light-yii2-offline)
```

###  Alternatives

[vyants/yii2-daemon

Extension provides functionality for simple daemons creation and control

7760.0k](/packages/vyants-yii2-daemon)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1454.6k](/packages/dmstr-yii2-cookie-consent)[imanilchaudhari/yii2-currency-converter

This extension will help to find out current currency conversion rate.

1911.7k](/packages/imanilchaudhari-yii2-currency-converter)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1358.5k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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