PHP code example of mesavolt / five-oh-three
1. Go to this page and download the library: Download mesavolt/five-oh-three 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/ */
mesavolt / five-oh-three example snippets
// replace the `use` line with this if you don't use Composer's autoloader
//
use Mesavolt\FiveOhThree\LockGuard;
LockGuard::checkAndRender([
'lock_path' => __DIR__.'/../estoy-deployin.lock', // path to lock file
'template' => __DIR__.'/res/deploying.html', // path to custom template (can either be a PHP or HTML file)
// when using the default template:
'auto_refresh' => false, // you can disable the auto-refresh...
'auto_refresh_interval' => 30, // ... or customize its interval
'icon' => 'http://bestanimations.com/Site/Construction/under-construction-animated-gif-8.gif',
]);