sheridan / zf2-maintenance-mode
This package is abandoned and no longer maintained.
No replacement package was suggested.
A simple maintenance mode plugin for ZF2. When enabled displays a scheduled maintenance page, supports allowed IP addresses.
dev-master
2022-10-04 11:31 UTC
Requires
- php: >=5.3.3
- zendframework/zendframework: 2.3.*
This package is not auto-updated.
Last update: 2022-10-10 23:22:29 UTC
README
zf2MaintenanceMode
Introduction
A simple maintenance mode plugin for ZF2. When enabled displays a scheduled maintenance page, supports allowed IP addresses.
Installation
Using composer
- Add
sheridan/zf2-maintenance-mode
(versiondev-master
) to requirements - Run
update
command on composer - Add
zf2MaintenanceMode
to yourapplication.config.php
file
Manually
Clone this project into your ./vendor/
directory and enable it in your
application.config.php
file.
Requires
PHP >= 5.3.3
Configuration
Create a config/maintenance.global.php file with the following contents
```
<?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