PHPackages                             mervick/yii2-under-construction - 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. mervick/yii2-under-construction

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

mervick/yii2-under-construction
===============================

Yii2 Under Construction Module

v1.0.1(10y ago)02.1k↓88.3%MITPHPPHP &gt;=5.4.0

Since Jul 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/mervick/yii2-under-construction)[ Packagist](https://packagist.org/packages/mervick/yii2-under-construction)[ RSS](/packages/mervick-yii2-under-construction/feed)WikiDiscussions master Synced today

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

Yii2 Under Construction Module
==============================

[](#yii2-under-construction-module)

[![Analytics](https://camo.githubusercontent.com/ee15aebaec5eceafc66497e41e3ca044d12273dc2996f048eb2bd3aafa00e543/68747470733a2f2f67612d626561636f6e2e61707073706f742e636f6d2f55412d36353239353237352d312f796969322d756e6465722d636f6e737472756374696f6e)](https://github.com/igrigorik/ga-beacon)

The simple yii2 extension which can disallow access to website.

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

[](#installation)

Via composer:

```
composer require "mervick/yii2-under-construction" "~1.0"
```

Usage
-----

[](#usage)

Add to your `config.php`:

```
return [
    // ...
    'modules' => [
        'under-construction' => [
            'class' => '\mervick\underconstruction\Module',
            // this is the on off switch
            'locked' => true,
            // the list of IPs that are allowed to access site.
            // The default value is `['127.0.0.1', '::1']`, which means the site can only be accessed by localhost.
            'allowedIPs' => ['127.0.0.1', '::1'],
            // change this to your namespace, if you want use your own controller
            'controllerNamespace' => 'mervick\underconstruction\controllers',
            // if you want use your views
            'viewPath' => '@alias/to/viewPath',
            // default layout
            'layout' => 'main',
            // if you want redirect to external website, default is null
            'redirectURL' => 'http://example.com',
        ],
    ],
    'bootstrap' => [
        'under-construction',
    ],
];
```

Preview
-------

[](#preview)

[![Under Construction Page](https://camo.githubusercontent.com/c9f0073e548c3f2452f5f43175ef56f378da952b5149a4e50ea2e788a2f98bee/687474703a2f2f7765627374796c652e6f642e75612f746573742f7969692f756e6465722d636f6e737472756374696f6e2e706e67)](https://camo.githubusercontent.com/c9f0073e548c3f2452f5f43175ef56f378da952b5149a4e50ea2e788a2f98bee/687474703a2f2f7765627374796c652e6f642e75612f746573742f7969692f756e6465722d636f6e737472756374696f6e2e706e67)

License
-------

[](#license)

[BSD3-Clause](https://raw.githubusercontent.com/mervick/yii2-under-construction/master/LICENSE)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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

2

Last Release

4003d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fbd6c1e93ed92f4ad92b9f53a7bad87eaa598a70bae172a3d40b1333c491b596?d=identicon)[mervick](/maintainers/mervick)

---

Top Contributors

[![mervick](https://avatars.githubusercontent.com/u/2429298?v=4)](https://github.com/mervick "mervick (42 commits)")

### Embed Badge

![Health badge](/badges/mervick-yii2-under-construction/health.svg)

```
[![Health](https://phpackages.com/badges/mervick-yii2-under-construction/health.svg)](https://phpackages.com/packages/mervick-yii2-under-construction)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)

PHPackages © 2026

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