A simple maintenance mode plugin for ZF2. When enabled displays a scheduled maintenance page, supports allowed IP addresses.
- Add
sheridan/zf2-maintenance-mode(versiondev-master) to requirements - Run
updatecommand on composer - Add
zf2MaintenanceModeto yourapplication.config.phpfile
Clone this project into your ./vendor/ directory and enable it in your
application.config.php file.
PHP >= 5.3.3
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',
),
);
```
- index.phtml file the content
- layout.phtml overrides global site layout