Download the PHP package uam/maintenance-bundle without Composer

On this page you can find all versions of the php package uam/maintenance-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package maintenance-bundle

UAMMaintenanceBundle

A symfony 2 bundle to manage maintenance periods for your symfony app.

Requirements

Installation

Add repository to your project's composer.json:

Add the bundle to your project's composer.json:

Run composer update to install the bundle:

assuming composer.phar is in bin directory.

Enable the bundle in the app's kernel:

enable the UAMMaintenanceBundle, UAMDatatablesBundle and UAMTwigI18nBundle in app's kernel.

Add the bundle to the assetic configuration:

If your composer.json does not include the post-install or post-update installAssets script handler, then run the following command:

or

Update your database schema

Run the following command to update the database schema.

Then run the below command to generate the migration file.

After generating migration file open the migration file and copy the query to create uam_maintenence and uam_maintenance_i18n table and run the query.

Or

run the command to execute generated sql.

Usage

Create maintenance periods

Display a warning to users about an implending maintenance period

Typically, if you have planned a maintenance operation in the near future, you want to publish a warning to your users on your app, in otder to let them know that the app will be unavailable during that time.

To do this with the UAMMaintenanceBndle, include the following code in the appropraite template of your app. If you want the warning to be displayed in all pages of your app, include this in the base template.

Customizing the "Under maintenance" page

Import routing file

override the layout

override the layout.html.twig template into your app so that page/message displayed will be consistent with the style of your app.

Or you can also override the progress.html.twig template for the "Under maintenence page".

Customizing the Admin pages

Import routing file

override the layout

override the layout.html.twig template into your app so that admin pages displayed will be consistent with the style of your app.

To access the admin pages, the user must have the role ROLE_UAM_MAINTENANCE_ADMIN.

Security

To access the admin pages

Admin pages are restricted to certain users. To access the admin pages, the user must have the role ROLE_UAM_MAINTENANCE_ADMIN.


All versions of maintenance-bundle with dependencies

PHP Build Version
Package Version
Requires symfony/http-kernel Version ^2.3|^3.0
uam/datatables-bundle Version ^5.0
uam/twig-i18n-extension Version @stable
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package uam/maintenance-bundle contains the following files

Loading the files please wait ....