-
Notifications
You must be signed in to change notification settings - Fork 0
heavenshell/php-silex-maintenance
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Silex Maintenance extension. This extension is for the Silex microframework enables to show maintenance html. <?php require_once 'silex.phar'; require_once dirname(__DIR__) . '/src/MaintenanceExtension.php'; $app = new Silex\Application(); $app->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.
About
Show maintenance to client.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published