2017 © Pedro Peláez
 

library lumen-maintenance-mode

Maintenance mode command for Lumen

image

dyned/lumen-maintenance-mode

Maintenance mode command for Lumen

  • Friday, March 9, 2018
  • by jsilalahi
  • Repository
  • 0 Watchers
  • 0 Stars
  • 112 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 45 % Grown

The README.md

:wrench: Lumen Maintenance Mode

GitHub release, (*1)

In Laravel framework, maintenance mode provided out of the box. Unfortunately, this feature not available in Lumen framework., (*2)

This library will bring back maintenance mode command for Lumen framework with customize JSON response., (*3)

Installation

Require this package with composer. It is recommended to only require the package for development., (*4)

composer require dyned/lumen-maintenance-mode

And then register the Maintenance Mode in Lumen Service Provider bootstrap/app.php file:, (*5)

$app->register(DynEd\Lumen\MaintenanceMode\MaintenanceModeServiceProvider::class);

Usage

To enable maintenance mode, execute the down Artisan command:, (*6)

php artisan down

When maintenance mode enabled, the maintenance response returned for each routes called., (*7)

You may also provide message and retry options to the down command. The message value may be used to display message in JSON response, while the retry value will used for retry in seconds before the application is available again:, (*8)

php artisan down --message="Upgrading Database" --retry=60

To disable maintenance mode, use the up command:, (*9)

php artisan up

TODO

  • Creating config for JSON response

The Versions

09/03 2018

dev-master

9999999-dev

Maintenance mode command for Lumen

  Sources   Download

The Requires

 

09/03 2018

dev-add-code-of-conduct

dev-add-code-of-conduct

Maintenance mode command for Lumen

  Sources   Download

The Requires

 

09/03 2018

dev-add-license

dev-add-license

Maintenance mode command for Lumen

  Sources   Download

The Requires

 

09/03 2018

v1.0.0

1.0.0.0

Maintenance mode command for Lumen

  Sources   Download

The Requires

 

09/03 2018

v0.1.4

0.1.4.0

Maintenance mode command for Lumen

  Sources   Download

The Requires

 

09/03 2018

v0.1.3

0.1.3.0

Maintenance mode command for Lumen

  Sources   Download

The Requires

 

09/03 2018

v0.1.2

0.1.2.0

Maintenance mode command for Lumen

  Sources   Download

The Requires

 

09/03 2018

v0.1.1

0.1.1.0

Maintenance mode command for Lumen

  Sources   Download

The Requires

 

09/03 2018

v0.1.0

0.1.0.0

Maintenance mode command for Lumen

  Sources   Download

The Requires