2017 © Pedro Peláez
 

yii2-extension yii2-under-construction

Yii2 Under Construction Module

image

mervick/yii2-under-construction

Yii2 Under Construction Module

  • Saturday, July 18, 2015
  • by mervick
  • Repository
  • 1 Watchers
  • 0 Stars
  • 602 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 7 % Grown

The README.md

Yii2 Under Construction Module

Analytics, (*1)

The simple yii2 extension which can disallow access to website., (*2)

Installation

Via composer:, (*3)

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

Usage

Add to your config.php:, (*4)

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

Under Construction Page, (*5)

License

BSD3-Clause, (*6)

The Versions

18/07 2015

dev-master

9999999-dev

Yii2 Under Construction Module

  Sources   Download

MIT

The Requires

 

18/07 2015

v1.0.1

1.0.1.0

Yii2 Under Construction Module

  Sources   Download

MIT

The Requires

 

17/07 2015

v1.0.0

1.0.0.0

Yii2 Under Construction Module

  Sources   Download

MIT

The Requires