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.
- Host: GitHub
- URL: https://github.com/heavenshell/php-silex-maintenance
- Owner: heavenshell
- Created: 2011-05-26T14:52:52.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2011-12-31T08:18:04.000Z (over 14 years ago)
- Last Synced: 2025-10-11T22:29:21.552Z (9 months ago)
- Language: PHP
- Homepage:
- Size: 93.8 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
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.