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. zaporylie/drush-maintenance-mode

ActiveDrupal-drush

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 2d 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 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

1989d 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-composer/drupal-project

Project template for Drupal 10 projects with Composer

1.6k829.0k](/packages/drupal-composer-drupal-project)[mglaman/phpstan-drupal

Drupal extension and rules for PHPStan

20729.0M124](/packages/mglaman-phpstan-drupal)[drupal/drupal-extension

Drupal extension for Behat

22215.1M147](/packages/drupal-drupal-extension)[farmos/farmos

A web-based farm record keeping application.

1.2k6.7k1](/packages/farmos-farmos)[jigarius/drall

Drall is a command-line utility to run drush on multi-site Drupal installations.

35105.9k](/packages/jigarius-drall)[lullabot/drainpipe

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

41716.4k2](/packages/lullabot-drainpipe)

PHPackages © 2026

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