Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

sheridans/zf2MaintenanceMode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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.

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

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published