Download the PHP package triopsi/maintenance without Composer

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

Maintenance plugin for CakePHP

A maintenance mode for your CakePHP application. With this plugin you can put your app into maintenance mode. With a whitelist you can also determine who can still access your application. It comes to you with a component, console and middleware.

:warning: This tool should not be used if the DB connection or your application goes down completely due to upgrades. There it would fail hard. It should only be used for soft maintenance work.

Installation

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

Load Plugin via bin/bake

Via the load task you are able to load plugins in your application.php. You can do this by running:

Manually Installing

If the plugin you want to install is not available on packagist.org, you can clone or copy the plugin code into your plugins directory. /plugin/

Put this in the application.php in the bootstrap method:

If we were installing the plugin manually you would need to modify our application’s composer.json file to contain the following information:

Additionally, you will need to tell Composer to refresh its autoloading cache:

Customizing

Make sure you have a template file in /templates/Error/ named maintenance.php.

Configs:

Those can be used to adjust the content of the maintenance mode page.

Maintenance Component

This component adds functionality on top:

Diable the Flash message

Write in the /config/app.php a variable like:

or in the initialize method in /src/Controller/AppController:

Instead of a flash message, something else can also be triggered. A view variable named maintenance_mode is written in the component. With the help of this variable it is possible to query the status in the template files. This could look something like this:

MaintenanceMode Commands

This should be the preferred way of enabling and disabling the maintenance mode for your application.

Commands

Help Page

Examples

Example for activating the maintenance mode:

Or with Timout (5 minutes)

Disable maintenance mode

Or Reset the mode (disable maintenance mode and delete all whitelist ip addresses)

Add ip address in the whitelist

Add ip addresses in the whitelist

Remove a ip address from the whitelist

List all ip addresses

Get status


All versions of maintenance with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
cakephp/cakephp Version 4.4.*
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 triopsi/maintenance contains the following files

Loading the files please wait ....