PHP code example of ozziest / maintenance

1. Go to this page and download the library: Download ozziest/maintenance 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/ */

    

ozziest / maintenance example snippets

 
$console->add(new Ozziest\Maintenance\Up('app/cache'));
$console->add(new Ozziest\Maintenance\Down('app/cache'));
 
Ozziest\Maintenance\Maintenance::check('app/cache', 'This is a maintenance message.');