Download the PHP package iulyanp/maintenance-bundle without Composer
On this page you can find all versions of the php package iulyanp/maintenance-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download iulyanp/maintenance-bundle
More information about iulyanp/maintenance-bundle
Files in iulyanp/maintenance-bundle
Package maintenance-bundle
Short Description A simple symfony bundle that helps you set your application in maintenance.
License MIT
Informations about the package maintenance-bundle
MaintenanceBundle
The MaintenanceBundle
is a simple bundle that helps you to set your application in maintenance.
Installation
Step 1: Require the bundle with composer
Open your terminal and run one of the following commands to download the bundle into your vendor directory.
-
If you have composer installed globally you can run:
- Else you can go with:
Step 2: Register the bundle in your AppKernel class
Register the bundle in the app/AppKernel.php file of your project:
Step 3: Import the bundle routes
Step 4: Configure the bundle
In order for the bundle to know when to set your website in maintenance you should configure it.
You should use enabled and due_date configurations to chose when you want your application to be in maintenance and until what date. You activate the maintenance by changing the enabled config to true but your website will be in maintenance only if you set the due date configuration.
The layout parameters are for changing the default title, message and signature from the default layout. You can translate these configurations in the translation files.
Note! Do not forget to activate the translations on Symfony framework.