PHPackages                             ingenyus/configure-environment-plugins - 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. ingenyus/configure-environment-plugins

ActiveWordpress-muplugin

ingenyus/configure-environment-plugins
======================================

WordPress MU plugin to enable or disable plugins in specific environments

2.0.0(2y ago)02.0k[3 issues](https://github.com/Genyus/Configure-Environment-Plugins/issues)[3 PRs](https://github.com/Genyus/Configure-Environment-Plugins/pulls)GPL-2.0+PHP

Since May 3Pushed 1y agoCompare

[ Source](https://github.com/Genyus/Configure-Environment-Plugins)[ Packagist](https://packagist.org/packages/ingenyus/configure-environment-plugins)[ Docs](https://github.com/Genyus/Configure-Environment-Plugins)[ RSS](/packages/ingenyus-configure-environment-plugins/feed)WikiDiscussions main Synced 5d ago

READMEChangelog (4)Dependencies (6)Versions (17)Used By (0)

Configure Environment Plugins
=============================

[](#configure-environment-plugins)

[![Packagist](https://camo.githubusercontent.com/c3d2bebf9c6276d448c30ac6929e13568bf67c476ded85f269ddc7a1ca015868/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696e67656e7975732f636f6e6669677572652d656e7669726f6e6d656e742d706c7567696e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ingenyus/configure-environment-plugins)

A WordPress MU plugin that allows plugins to be enabled or disabled based on current environment.

It's created for sites built on [Bedrock](https://roots.io/bedrock) or any other Composer-based framework. It's configured purely by defining environment details, there's no GUI. Listed plugins will be disabled or enabled for the network in a multi-site instance.

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

[](#installation)

**Install using Composer**

```
composer require ingenyus/configure-environment-plugins

```

Usage
=====

[](#usage)

Add the following constants to your `.env` file (or set in your hosting environment using alternative means). Multiple plugins can be specified with a comma-delimited string:

```
DISABLED_PLUGINS='akismet/akismet.php, hello-dolly/hello-dolly.php'
ENABLED_PLUGINS='disable-emails/disable-emails.php'

```

Add the following lines to config/application.php:

```
if ( env('ENABLED_PLUGINS') ) {
    Config::define( 'ENABLED_PLUGINS', explode(',', env('ENABLED_PLUGINS')) );
}
if ( env('DISABLED_PLUGINS') ) {
    Config::define( 'DISABLED_PLUGINS', explode(',', env('DISABLED_PLUGINS')) );
}
```

Hooks
=====

[](#hooks)

The plugin defines four actions you can hook into:

```
/**
 * Called after local plugins have been disabled
 *
 * @param string[] $disabled_plugins
 */
add_action( 'environment_plugins_after_disabling_local_plugins', function( $disabled_plugins ) { /* Do something */ } );

/**
 * Called after local plugins have been enabled
 *
 * @param string[] $enabled_plugins
 */
add_action( 'environment_plugins_after_enabling_local_plugins', function( $enabled_plugins ) { /* Do something */ } );

/**
 * Called after network plugins have been disabled
 *
 * @param string[] $disabled_plugins
 */
add_action( 'environment_plugins_after_disabling_network_plugins', function( $disabled_plugins ) { /* Do something */ } );

/**
 * Called after network plugins have been enabled
 *
 * @param string[] $enabled_plugins
 */
add_action( 'environment_plugins_after_enabling_network_plugins', function( $enabled_plugins ) { /* Do something */ } );
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~129 days

Recently: every ~267 days

Total

12

Last Release

784d ago

Major Versions

1.0.11 → 2.0.02024-03-23

### Community

Maintainers

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

---

Top Contributors

[![Genyus](https://avatars.githubusercontent.com/u/1282558?v=4)](https://github.com/Genyus "Genyus (21 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (3 commits)")

---

Tags

wordpress

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/ingenyus-configure-environment-plugins/health.svg)

```
[![Health](https://phpackages.com/badges/ingenyus-configure-environment-plugins/health.svg)](https://phpackages.com/packages/ingenyus-configure-environment-plugins)
```

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.5k441.8k2](/packages/roots-bedrock)[humanmade/s3-uploads

WordPress plugin to store uploads on S3

2.1k2.4M9](/packages/humanmade-s3-uploads)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[10up/elasticpress

Supercharge WordPress with Elasticsearch.

1.3k374.3k6](/packages/10up-elasticpress)[roots/wp-stage-switcher

WordPress plugin that allows you to switch between different environments from the admin bar

382435.0k3](/packages/roots-wp-stage-switcher)[vinkla/wordplate

The WordPlate boilerplate

2.2k5.1k](/packages/vinkla-wordplate)

PHPackages © 2026

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