Download the PHP package yasudacloud/lumaintenance without Composer
On this page you can find all versions of the php package yasudacloud/lumaintenance. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yasudacloud/lumaintenance
More information about yasudacloud/lumaintenance
Files in yasudacloud/lumaintenance
Package lumaintenance
Short Description This is a library that supports Lumen Framework maintenance functions.
License MIT
Informations about the package lumaintenance
Welcome to lumaintenance
This repository allows you to use the maintenance features in Lumen.
There are two ways to make maintenance changes: by generating a local file or by using environment variables.
Required for installation
setup (Run within the Lumen project)
1. Installation
2. Add the following to bootstrap/app.php
3. Copy the configuration file
Use
Maintenance status
Use a local file to put it in a maintenance state.
If you want to restrict by IP address
Restore the original state
Changing the maintenance status by environment variables
LUMAIN_IS_DOWN must be set to something other than blank.
For LUMAIN_EXCLUDE_PATH, enter the path you want to exclude from maintenance, such as a health check.
You can leave it blank, but you can only set one.
LUMAIN_ALLOW_IPS sets the whitelist of IP addresses as well as the local file.
Note, however, that the IP address set in LUMAIN_ALLOW_IPS will also be set for local file maintenance.
DEMO
Customize the maintenance page
Other
The HTTP status code for the maintenance page is 503 status code by default. You can change the setting in lumaintenance.php.
Contact
If you find any problems, please contact us at
Thanks to DeepL for the translation!