2017 © Pedro Peláez
 

library zf2-maintenance-mode

A simple maintenance mode plugin for ZF2. When enabled displays a scheduled maintenance page, supports allowed IP addresses.

image

sheridan/zf2-maintenance-mode

A simple maintenance mode plugin for ZF2. When enabled displays a scheduled maintenance page, supports allowed IP addresses.

  • Friday, December 18, 2015
  • by sheridan
  • Repository
  • 1 Watchers
  • 1 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

ZF2 is EOL, this has been archived for reference purposes.

zf2MaintenanceMode

Introduction

A simple maintenance mode plugin for ZF2. When enabled displays a scheduled maintenance page, supports allowed IP addresses., (*1)

Installation

Using composer

  1. Add sheridan/zf2-maintenance-mode (version dev-master) to requirements
  2. Run update command on composer
  3. Add zf2MaintenanceMode to your application.config.php file

Manually

Clone this project into your ./vendor/ directory and enable it in your application.config.php file., (*2)

Requires

PHP >= 5.3.3, (*3)

Configuration

Create a config/maintenance.global.php file with the following contents, (*4)

```
    <?php
    return array(
        'zf2MaintenanceMode' => array (
        'enabled' => true,
        'retry-after' => 3600,
        'allowed' => array(
            '127.0.0.1',
        ),
    );
```

Features

  1. index.phtml file the content
  2. layout.phtml overrides global site layout

The Versions

18/12 2015

dev-master

9999999-dev

A simple maintenance mode plugin for ZF2. When enabled displays a scheduled maintenance page, supports allowed IP addresses.

  Sources   Download

MIT

The Requires

 

maintenance zf2