PHP code example of mpalourdio / zf2-maintenance-mode

1. Go to this page and download the library: Download mpalourdio/zf2-maintenance-mode library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mpalourdio / zf2-maintenance-mode example snippets

maintenance.config.global.php.dist
config/autoload/maintenance.config.global.php
sh
cd path/to/project/root
php public/index.php maintenance enable
sh
cd path/to/project/root
php public/index.php maintenance disable