PHP code example of xiidea / ez-maintenance
1. Go to this page and download the library: Download xiidea/ez-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/ */
xiidea / ez-maintenance example snippets
EzMaintenance\Worker::watch('file', array(
'path' => 'maintenance.enable'
));
EzMaintenance\Worker::watch('env', array(
'var_name' => 'APPLICATION_ENV',
'check_value' => 'down'
));
EzMaintenance\Worker::watch('const', array(
'var_name' => 'APPLICATION_ENV',
'check_value' => 'down'
));
echo $javascript;