An open API service indexing awesome lists of open source software.

https://github.com/heavenshell/php-silex-maintenance

Show maintenance to client.
https://github.com/heavenshell/php-silex-maintenance

Last synced: 9 months ago
JSON representation

Show maintenance to client.

Awesome Lists containing this project

README

          

Silex Maintenance extension.

This extension is for the Silex microframework enables to show maintenance html.

register(new \MaintenanceExtension(), array(
'maintenance.lock' => __DIR__ . '/maintenance',
'maintenance.file' => __DIR__ . '/maintenance.html',
));

$app->get('/', function () use ($app) {
return json_encode(array('status' => true ));
});

If you want to show maintenance.html, you just put file to 'maintenance.lock'.
$ touch maintenance
MaintenanceExtension automatically find maintenance html file and response to client.