Download the PHP package mahmud/maintenance-mode without Composer

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

Laravel Maintenance Mode

Build Status Packagist Version Downloads License

Put your application down and browse in dev mode.

Screenshot

Installation

  1. Install package through composer

Or add dependency to composer.json file

  1. Add Service Provider to providers array in config/app.php

  2. Add the following Middleware in middleware array in app/Http/Kernel.php

  3. Publish resources by this command

  4. Add APP_STATUS and UP_TIME to your .env file

Usage

.env

Set APP_STATUS in your .env file. Possible values are up and down. Set app status to down when you want to go for maintenance. And Also set UP_TIME when your application will be up. UP_TIME format is 'YYYY-MM-DD hh:mm:ss'.

UP_TIME has no effect when APP_STATUS=up

Dev Mode

You can access you app when it is in maintenance mode. To access you must visit your site with query param mode=dev The URL will be

Once you browse like this you can browse for the next few minutes specified in cookie_exp_min

Configuration

To change configuration go to config/maintenance-mode.php. Available configurations are listed below.

app_status

This is the status of your app. Possible value are: down | up . When you start maintenance work, you should set the status to down. You can also set the status from .env file. Just set APP_STATUS=down in your environment.

up_time

You should set time when your application will be up. You can set up time from .env file by setting UP_TIME='YYYY-MM-DD hh:mm:ss' in this format.

cookie_exp_min

Dev mode will be expired after specified minutes. After being expired user should visit the site with mode=dev query param to start dev session again.

down_status_code

This status code will be send with the header when you app is down.

app_down_msg

This message will be sent as a response when client sent AJAX request to the app. Response will be in JSON format where key is error and value is the message. For example:

view

This view is returned when your application is down. You can set a custom view by specifying the view path here. i.e.

when you view path is resources/views/public/errors.custom_view.blade.php


All versions of maintenance-mode with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
illuminate/http Version ^5.1
illuminate/support Version ^5.1
nesbot/carbon Version ~1.18
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 mahmud/maintenance-mode contains the following files

Loading the files please wait ....