PHPackages                             zaporylie/drush-maintenance-mode - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. zaporylie/drush-maintenance-mode

ActiveDrupal-drush[Utility &amp; Helpers](/categories/utility)

zaporylie/drush-maintenance-mode
================================

Validates which drush commands can run when Drupal is in maintenance mode.

0.1.0(5y ago)05GPL-2.0+PHP

Since Nov 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/zaporylie/drush-maintenance-mode)[ Packagist](https://packagist.org/packages/zaporylie/drush-maintenance-mode)[ RSS](/packages/zaporylie-drush-maintenance-mode/feed)WikiDiscussions 1.x Synced 3w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Drush Maintenance Mode
======================

[](#drush-maintenance-mode)

Restricts list of drush commands that are allowed to be run when the site is in maintenance mode.

Installation
============

[](#installation)

```
composer require zaporylie/drush-maintenance-mode
```

Configuration
=============

[](#configuration)

Create a file `.drush-maintenance-mode.yml` in project's root directory (composer root). List all commands (by command name) under `commands.allowed` property. Command names should be used as keys.

Example:

```
commands:
  allowed:
    // Preview site state.
    'core:status':
    // Clear cache.
    'cache:clear':
    // Take the site out of maintenance mode using drush.
    'state:set':
    // Update database.
    'updatedb':
    'updatedb:status':
    // Export configuration split.
    'config-split:export':
    // Import configuration.
    'config-split:import':
    'config:import':
    // Import translations.
    'locale:update':
    // Used internally by bunch of commands above.
    'batch:process':
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

2

Last Release

2041d ago

Major Versions

0.1.0 → 1.x-dev2020-11-30

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1690685?v=4)[Jakub Piasecki](/maintainers/zaporylie)[@zaporylie](https://github.com/zaporylie)

---

Top Contributors

[![zaporylie](https://avatars.githubusercontent.com/u/1690685?v=4)](https://github.com/zaporylie "zaporylie (4 commits)")

### Embed Badge

![Health badge](/badges/zaporylie-drush-maintenance-mode/health.svg)

```
[![Health](https://phpackages.com/badges/zaporylie-drush-maintenance-mode/health.svg)](https://phpackages.com/packages/zaporylie-drush-maintenance-mode)
```

###  Alternatives

[drupal/drupal-extension

Drupal extension for Behat

22215.7M173](/packages/drupal-drupal-extension)[farmos/farmos

A web-based farm record keeping application.

1.3k7.1k1](/packages/farmos-farmos)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

43785.5k4](/packages/lullabot-drainpipe)[vardot/varbase-project

Project template for Varbase distribution.

5362.5k](/packages/vardot-varbase-project)[acquia/cohesion

Site Studio

271.7M10](/packages/acquia-cohesion)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

40252.8k34](/packages/ec-europa-toolkit)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
