PHPackages                             ogrosko/wp-composer-maintenance - 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. ogrosko/wp-composer-maintenance

AbandonedComposer-scripts[Utility &amp; Helpers](/categories/utility)

ogrosko/wp-composer-maintenance
===============================

Composer pre/post scripts for enabling/disabling wordpress maintenance mode

0.0.2(8y ago)2501GPL-3.0PHP

Since May 6Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ogrosko/wp-composer-maintenance)[ Packagist](https://packagist.org/packages/ogrosko/wp-composer-maintenance)[ RSS](/packages/ogrosko-wp-composer-maintenance/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

wp-composer-maintenance
=======================

[](#wp-composer-maintenance)

When you are using [Wordpress with composer](https://roots.io/using-composer-with-wordpress/) this scripts automatically put you website to maintenance mode when you run `composer update`. wp-composer-maintenance are collection of simple scripts for composer pre-update/post-update section.

Installation using [Composer](http://getcomposer.org/)
------------------------------------------------------

[](#installation-using-composer)

```
$ composer require ogrosko/wp-composer-maintenance
```

Usage
-----

[](#usage)

Add following config in `scripts` section of your `composer.json` file

```
"scripts": {
	"pre-update-cmd": [
		"OGrosko\\Composer\\WpComposerMaintenance::maintenance_enable"
	],
	"post-update-cmd": [
		"OGrosko\\Composer\\WpComposerMaintenance::maintenance_disable"
	]
},
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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 ~445 days

Total

2

Last Release

3256d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2938503?v=4)[ogrosko](/maintainers/ogrosko)[@ogrosko](https://github.com/ogrosko)

---

Top Contributors

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

---

Tags

composerwordpressmaintenance

### Embed Badge

![Health badge](/badges/ogrosko-wp-composer-maintenance/health.svg)

```
[![Health](https://phpackages.com/badges/ogrosko-wp-composer-maintenance/health.svg)](https://phpackages.com/packages/ogrosko-wp-composer-maintenance)
```

###  Alternatives

[mnsami/composer-custom-directory-installer

A composer plugin, to help install packages of different types in custom paths.

1415.3M59](/packages/mnsami-composer-custom-directory-installer)[automattic/jetpack-autoloader

Creates a custom autoloader for a plugin or theme.

545.9M112](/packages/automattic-jetpack-autoloader)[typisttech/imposter-plugin

Composer plugin that wraps all composer vendor packages inside your own namespace. Intended for WordPress plugins.

155258.5k2](/packages/typisttech-imposter-plugin)[szepeviktor/composer-envato

Composer plugin for Envato

3516.3k1](/packages/szepeviktor-composer-envato)

PHPackages © 2026

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