Define application maintenance mode.

Overview

Lumen maintenance mode

Latest Stable Version Total Downloads License Build Status Scrutinizer Code Quality

How to install

composer require rdehnhardt/lumen-maintenance-mode

How to configure

In bootstrap/app.php, add this instruction in providers

$app->register(
    Rdehnhardt\MaintenanceMode\Providers\MaintenanceModeServiceProvider::class
);

Set View

resources/views/errors/503.blade.php

Put the application into maintenance mode.

php artisan down

Bring the application out of maintenance mode.

php artisan up

IP released for access

In .env file

ALLOWED_IPS=999.99.9.999,999.99.9.999,999.99.9.999
Comments
  • Bypassing maintenance mode for specific IPs

    Bypassing maintenance mode for specific IPs

    This is a great addon to Laravel Lumen, but occasionally I'd be putting the site into maintenance mode so I make an update to the site without causing any errors to show.

    What way can I whitelist my IP (and any other IPs) so that I can bypass the maintenance mode page?

    opened by TechKat 5
  • i use lumen 5.2 and got error

    i use lumen 5.2 and got error

     [ErrorException]                                                                                                                                                       
      Argument 1 passed to Rdehnhardt\MaintenanceMode\MaintenanceModeService::__construct() must be an instance of Illuminate\Contracts\Foundation\Application, instance of  
       Laravel\Lumen\Application given, called in /vendor/rdehnhardt/lumen-maintenance-mode/src/Providers/MaintenanceModeServiceProvider.  
      php on line 29 and defined                                                                                                                                             
    
    opened by hartono-sulaiman-kaskus 4
  • Unable to put app in maintenance mode

    Unable to put app in maintenance mode

    I installed the package in a lumen 5.6 installation but was unable to put application in maintenance mode. I got the error below:

    In BoundMethod.php line 135:

    Method Rdehnhardt\MaintenanceMode\Console\Commands\DownCommand::handle() does not exist

    opened by JarvisCI 3
  • Setting the view

    Setting the view

    Thank you very much for this amazing package !

    Then I find something wrong.

    According to the class called MaintenanceModeMiddleware, in the function handle, you do $this->view->exists('errors.503'), so in the readme.md, you should put resources/views/errors/503.blade.php instead of resources/errors/503.blade.php. Am I right ?

    opened by w3spi5 1
  • Update MaintenanceModeMiddleware.php

    Update MaintenanceModeMiddleware.php

    What about letting user define it's own response by adding a maintenance.php file in the config folder defined this way :

    return [ 'httpCode' => 200, // HTTP Response Code 'response' => "Whatever response message you wish to send", // Detail response ];

    opened by flefloch-payps 0
  • Added Exceptions, PHPUnit Tests and php-cs-fixer configuration file

    Added Exceptions, PHPUnit Tests and php-cs-fixer configuration file

    Some commands are available and needs to run in root package path:

    • phpunit tests: vendor/bin/phpunit
    • to fix code style to psr2 and laravel style: vendor/bin/php-cs-fixer fix

    if you have php-cs-fixer and phpunit installed in your PATH, just run:

    • phpunit
    • php-cs-fixer fix
    opened by vluzrmos 0
Owner
Renato Dehnhardt
Professional with over 15 years of experience in software development projects. Acting in several business sectors, such as Human Resources and e-Commerce.
Renato Dehnhardt
This application is a simple application to watch movies like Netflix or DisneyPlus.

Movie Streaming React Web Apps This application is a simple application to watch streaming movies like Netflix or DisneyPlus. The application is built

Adim 2 Sep 25, 2022
Centreon is a network, system and application monitoring tool. Centreon is the only AIOps Platform Providing Holistic Visibility to Complex IT Workflows from Cloud to Edge.

Centreon - IT and Application monitoring software Introduction Centreon is one of the most flexible and powerful monitoring softwares on the market;

Centreon 14 Dec 16, 2022
Emoncms is an open-source web application for processing, logging and visualising energy, temperature and other environmental data and is part of the OpenEnergyMonitor project.

Emoncms is an open-source web application for processing, logging and visualising energy, temperature and other environmental data and is part of the OpenEnergyMonitor project.

Emoncms 1.1k Dec 22, 2022
Mibew Messenger - open-source live support application written in PHP and MySQL

Mibew Messenger is an open-source live support application written in PHP and MySQL. It enables one-on-one chat assistance in real-time directly from your website.

Mibew Messenger 443 Dec 13, 2022
DinoPHP is a web application framework

DinoPHP is a web application framework with expressive. We believe development must be an enjoyable and creative experience. DinoPHP takes the pain out of development by easing common tasks used in many web projects

Ahmed Mohamed Ibrahim 24 Jan 1, 2023
Handle GitHub webhooks in a Laravel application

GitHub can notify your application of events using webhooks. This package can help you handle those webhooks.

Spatie 71 Nov 5, 2022
EspoCRM open source CRM application

EspoCRM is an Open Source CRM (Customer Relationship Management) software that allows you to see, enter and evaluate all your company relationships regardless of the type. People, companies or opportunities - all in an easy and intuitive interface.

EspoCRM - Open Source CRM 1k Dec 29, 2022
OroCRM is an open source Client Relationship Management (CRM) application

OroCRM is an open source Client Relationship Management (CRM) application that allows to create a 360° view of your customers across multiple channels, organize the sales pipeline, manage account and contact information, communicate with customers, run marketing campaigns and track campaign performance.

Oro, Inc. 611 Jan 3, 2023
TinyFileManager is web based file manager and it is a simple, fast and small file manager with a single file, multi-language ready web application

TinyFileManager is web based file manager and it is a simple, fast and small file manager with a single file, multi-language ready web application for storing, uploading, editing and managing files and folders online via web browser. The Application runs on PHP 5.5+, It allows the creation of multiple users and each user can have its own directory and a build-in support for managing text files with cloud9 IDE and it supports syntax highlighting for over 150+ languages and over 35+ themes.

Prasath Mani 3.5k Jan 7, 2023
DinoPHP is a web application framework with expressive.

DinoPHP is a web application framework with expressive. We believe development must be an enjoyable and creative experience. DinoPHP takes the pain out of development by easing common tasks used in many web projects

DinoPHP 23 Dec 14, 2022
phpIPAM is an open-source web IP address management application.

phpIPAM is an open-source web IP address management application. Its goal is to provide light and simple IP address management application. It is ajax-based using jQuery libraries, it uses php scripts and javascript and some HTML5/CSS3 features, so some modern browser is preferred to be able to display javascript quickly and correctly.

Miha Petkovsek 1.8k Dec 31, 2022
Workout application with fully functional Frontend and Backend.

Fit_Me_Application About Application: This FIT-ME management system is an easy way to use gym and health membership system. It can help to keep the re

Talha 3 Feb 20, 2022
PHP, MySQL and JS based web chat application

About The Project Chat Application coded in PHP, CSS3 and JS. This is just a project to learn and improve understanding on certain topics. This is not

Neil 8 Apr 18, 2022
A web application for a school, facilitating the registration of students. Built using HTML/CSS, PHP and Oracle.

Student Registration System A web application for a school, facilitating the registration of students. Built using HTML/CSS, PHP and Oracle. Included

Sana Khan 4 Oct 2, 2021
Cloudlog is a self-hosted PHP application that allows you to log your amateur radio contacts anywhere.

Web based amateur radio logging application built using PHP & MySQL supports general station logging tasks from HF to Microwave with supporting applications to support CAT control.

Peter Goodhall 291 Jan 5, 2023
A simple, beautiful, mobile-first instant messaging web application backend build with ThinkPHP6 and Swoole.

OnChat A simple, beautiful, mobile-first instant messaging progressive web application build with ThinkPHP6 and Swoole. You can click here to view the

HyperLifelll9 138 Dec 26, 2022
Open Source Point of Sale is a web based point of sale application written in PHP using CodeIgniter framework.

Open Source Point of Sale is a web based point of sale application written in PHP using CodeIgniter framework. It uses MySQL as the data back end and has a Bootstrap 3 based user interface.

opensourcepos 2.7k Jan 2, 2023
OpenEMR is a Free and Open Source electronic health records and medical practice management application

OpenEMR is a Free and Open Source electronic health records and medical practice management application. It features fully integrated electronic health records, practice management, scheduling, electronic billing, internationalization, free support, a vibrant community, and a whole lot more. It runs on Windows, Linux, Mac OS X, and many other platforms.

OpenEMR 2.1k Jan 9, 2023
Division, District, Upazila/Thana and Union data of Bangladesh for Laravel application.

Bangladesh Geocode Division, District, Upazila/Thana and Union data of Bangladesh for Laravel application. Migration and seeders are ready. Just publi

Lemon Patwari 8 Nov 30, 2022