PHPackages                             androlax2/wp-plugin-control - 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. androlax2/wp-plugin-control

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

androlax2/wp-plugin-control
===========================

Library for WordPress plugin control.

0.1.1(5y ago)017.5k↓20%1PHPPHP &gt;=5.4.0

Since Jan 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Androlax2/wp-plugin-control)[ Packagist](https://packagist.org/packages/androlax2/wp-plugin-control)[ RSS](/packages/androlax2-wp-plugin-control/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (1)

WP Plugin Control
=================

[](#wp-plugin-control)

(INSPIRED BY )

A simple library for WordPress plugin activation control.

Basic Usage
-----------

[](#basic-usage)

Intended for use within a [Must Use](http://codex.wordpress.org/Must_Use_Plugins) plugin.

#### Force-enable a plugin

[](#force-enable-a-plugin)

```
new \Androlax2\WordPress\PluginControl\EnablePlugins('akismet/akismet.php');
```

#### Force-disable a plugin

[](#force-disable-a-plugin)

```
new \Androlax2\WordPress\PluginControl\DisablePlugins('akismet/akismet.php');
```

The contructors can also accept an array of plugin files:

```
new \Androlax2\WordPress\PluginControl\EnablePlugins(['akismet/akismet.php', 'hello.php']);
```

Multisite
---------

[](#multisite)

#### Force-network-enable a plugin

[](#force-network-enable-a-plugin)

```
new \Androlax2\WordPress\PluginControl\NetworkEnablePlugins('akismet/akismet.php');
```

#### Force-network-disable a plugin

[](#force-network-disable-a-plugin)

```
new \Androlax2\WordPress\PluginControl\NetworkDisablePlugins('akismet/akismet.php');
```

> Note: Network disabling a plugin does not prevent the plugin from being loaded, it may still be enabled at the site-level unless force-disabled.

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

[](#installation)

**Via Composer (recommended)**

```
composer require androlax2/wp-plugin-control:~0.1.0

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

Total

2

Last Release

1936d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39646949?v=4)[Théo Benoit](/maintainers/Androlax2)[@Androlax2](https://github.com/Androlax2)

### Embed Badge

![Health badge](/badges/androlax2-wp-plugin-control/health.svg)

```
[![Health](https://phpackages.com/badges/androlax2-wp-plugin-control/health.svg)](https://phpackages.com/packages/androlax2-wp-plugin-control)
```

###  Alternatives

[letudiant/composer-shared-package-plugin

This composer plugin allows you to share selected packages between your projects with symlinks.

16450.9k1](/packages/letudiant-composer-shared-package-plugin)[tpoxa/shortcodes

Wordpress style shorttags support for Yii2

2313.5k](/packages/tpoxa-shortcodes)

PHPackages © 2026

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