Download the PHP package middlewares/shutdown without Composer
On this page you can find all versions of the php package middlewares/shutdown. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download middlewares/shutdown
More information about middlewares/shutdown
Files in middlewares/shutdown
Package shutdown
Short Description Middleware to display a 503 maintenance page
License MIT
Homepage https://github.com/middlewares/shutdown
Informations about the package shutdown
middlewares/shutdown
Middleware to display a 503
maintenance page.
Requirements
- PHP >= 7.2
- A PSR-7 http library
- A PSR-15 middleware dispatcher
Installation
This package is installable and autoloadable via Composer as middlewares/shutdown.
Example
Usage
This middleware generates a 503
response to display while the server is in maintenance. Optionally, you can provide a Psr\Http\Message\ResponseFactoryInterface
used to create the responses. If it's not defined, Middleware\Utils\Factory will be used to detect it automatically.
retryAfter
If known, the length of the downtime in seconds or the estimated date and time when the downtime will be complete. More info about why this
render
Use this option to customize the content of the response by providing a callable that returns a string:
Please see CONTRIBUTING for contributing details.
The MIT License (MIT). Please see LICENSE for more information.
All versions of shutdown with dependencies
middlewares/utils Version ^3.0
psr/http-server-middleware Version ^1.0