Download the PHP package corley/maintenance-bundle without Composer

On this page you can find all versions of the php package corley/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

Corley Maintenance Bundle

A unified way of putting a web application under maintenance using web server strategies. The maintenance mode will cut off all requests and it will replies with a static html file and a 503 header (Service Unavailable).

Those conditions will ensure that a load balancer cut an instance off during a maintenance

Build Status

Install

In composer.json add the requirement.

The current version requires at least PHP 8.1 and a supported (as at time of release) version of Symfony (4.4, 5.4, 6.0 and 6.1).

To support earlier versions e.g. SF 3.4, 4.2, 4.3, 5.1 etc or PHP greater than 7.2 but less than 8.1 you will need to use:

To support earlier versions still, e.g. SF 2.x, 3.3, 4.1 etc or PHP less than 7.2 you will need to use:

This version can also be used for more recent Symfony versions, e.g. with 3.4 or 4.4 but is not compatible with Symfony 5 - only 0.3 or greater can be used there because of changes to the event structure in Symfony 5.0.

For pre-Flex applications register the bundle in AppKernel.php

For projects built with recent versions of Flex, a default recipe will be generated which will add the bundle to your bundles.php. In older versions of Flex you may need to do this yourself

Maintenance mode

When you want to put your web application under maintenance

Restore the application status

Configure your web server

If you use Apache2 you have to add a few lines to your .htaccess, for nginx just add dedicated lines to web app configuration. Make sure that those lines precede any other rewrite rule. The mod_rewrite module in Apache2 has to be installed and enabled.

In order to obtain your configuration options use the console

Apache2

Nginx

Configuration

You can configure the bundle in order to change the default behaviour (all options have a default value)

For projects not using Flex

For Flex projects

Options:

Soft locking

The soft locking strategy uses the php layer in order to lock down the website. This means that the application must work in order to lock down the web site.

The soft lock runs at kernel.request and stops other event propagation.

When you want to put your web application under maintenance using a soft-locking strategy:

Restore the application status


All versions of maintenance-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
symfony/framework-bundle Version ^4.4|^5.4|^6.0
symfony/security-bundle Version ^4.4|^5.4|^6.0
symfony/console Version ^4.4|^5.4|^6.0
symfony/dependency-injection Version ^4.4|^5.4|^6.0
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 corley/maintenance-bundle contains the following files

Loading the files please wait ....