library zf2-maintenance-mode
A simple maintenance mode plugin for ZF2. When enabled displays a scheduled maintenance page, supports allowed IP addresses.
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
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
- Add
sheridan/zf2-maintenance-mode
(version dev-master
) to requirements
- Run
update
command on composer
- 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
- index.phtml file the content
- layout.phtml overrides global site layout
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