PHPackages                             pivvenit/wordpress-readonly - 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. pivvenit/wordpress-readonly

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

pivvenit/wordpress-readonly
===========================

WordPress plugin that activates readonly mode

2.1.1(3mo ago)914.5k[2 issues](https://github.com/pivvenit/wordpress-readonly/issues)MITPHPPHP &gt;=8.2CI passing

Since Aug 30Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/pivvenit/wordpress-readonly)[ Packagist](https://packagist.org/packages/pivvenit/wordpress-readonly)[ RSS](/packages/pivvenit-wordpress-readonly/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (7)Versions (32)Used By (0)

WordPress Readonly
==================

[](#wordpress-readonly)

[![Packagist](https://camo.githubusercontent.com/df87450182bfdcac38e9115d5db803a2499e318f3ec6d55bf9b1ce086d680cf5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70697676656e69742f776f726470726573732d726561646f6e6c792e7376673f6d61784167653d33363030)](https://packagist.org/packages/pivvenit/wordpress-readonly)[![Packagist](https://camo.githubusercontent.com/c40383b4178a5c5ef27c4682146ca95f3cd6482b24c93e32ca1edb7dd9af995e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f70697676656e69742f776f726470726573732d726561646f6e6c792e7376673f6d61784167653d32353932303030)](https://github.com/pivvenit/wordpress-readonly/blob/master/LICENSE)[![](https://github.com/pivvenit/wordpress-readonly/workflows/Build/badge.svg)](https://github.com/pivvenit/wordpress-readonly/workflows/Build/badge.svg)[![Dependabot](https://camo.githubusercontent.com/16df3a8a95ca528ccfb2013d513815a2b17031dee04bdd555570d256a630ccbc/68747470733a2f2f62616467656e2e6e65742f62616467652f446570656e6461626f742f656e61626c65642f677265656e3f69636f6e3d646570656e6461626f74)](https://dependabot.com/)

A WordPress plugin that makes WordPress readonly. It's main use case is blue/green deployments, in which the active application slot requires a (short) readonly window to sync the database to the other slot.

Features:

- `WP-CLI` commands to enable and disable the readonly mode
- Notify logged-in users (in the admin) of upcoming `readonly` phase using notification.
- Disable login for all users during both `prepare` and `readonly` phase.
- Drop all `POST` requests during `readonly` phase with a `503 Service Unavailable`.
- Refreshes admin pages for logged-in users once readonly mode is disabled.

Installation
------------

[](#installation)

This plugin is designed for WordPress websites that use `Composer`, such as [Bedrock](https://packagist.org/packages/roots/bedrock).

```
composer require pivvenit/wordpress-readonly
```

Usage
-----

[](#usage)

**Enable readonly mode**

```
./vendor/bin/wp readonly enable
```

**Disable readonly mode**

```
./vendor/bin/wp readonly disable
```

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance78

Regular maintenance activity

Popularity30

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 73.1% 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 ~99 days

Recently: every ~197 days

Total

21

Last Release

97d ago

Major Versions

1.1.3 → 2.0.02023-05-24

PHP version history (2 changes)1.0.0PHP &gt;=7.2

2.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/c75ddf117af3c6cbd06c7155f640d9fb2190bd5c60089689b30d35d2b34b502d?d=identicon)[PivvenIT](/maintainers/PivvenIT)

---

Top Contributors

[![Qrious](https://avatars.githubusercontent.com/u/680327?v=4)](https://github.com/Qrious "Qrious (19 commits)")[![BTSmolders](https://avatars.githubusercontent.com/u/9419938?v=4)](https://github.com/BTSmolders "BTSmolders (2 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (2 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/pivvenit-wordpress-readonly/health.svg)

```
[![Health](https://phpackages.com/badges/pivvenit-wordpress-readonly/health.svg)](https://phpackages.com/packages/pivvenit-wordpress-readonly)
```

###  Alternatives

[davedevelopment/pimple-aware-event-dispatcher

A Symfony compatible event dispatcher that allows services to be lazy loaded from an instance of the Pimple DI container

122.5k1](/packages/davedevelopment-pimple-aware-event-dispatcher)

PHPackages © 2026

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