PHPackages                             themeplate/enforcer - 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. themeplate/enforcer

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

themeplate/enforcer
===================

Simple enforcer of plugins per environment type

v1.1.0(1y ago)14GPL-3.0-onlyPHPPHP ^7.4|^8.2

Since May 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ThemePlate/Enforcer)[ Packagist](https://packagist.org/packages/themeplate/enforcer)[ RSS](/packages/themeplate-enforcer/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

ThemePlate Enforcer
===================

[](#themeplate-enforcer)

Usage
-----

[](#usage)

```
use ThemePlate\Enforcer;

$enforcer = new Enforcer();

$enforcer->register( 'local', 'query-monitor/query-monitor.php' );
$enforcer->register( 'production', 'wordfence/wordfence.php' );

// or register all in one go
$plugins = array(
	'local' => array(
		'query-monitor/query-monitor.php',
	),
	'production' => array(
		'wordfence/wordfence.php',
	),
);

$enforcer->load( $plugins );

// set up the hooks
add_action( 'init', array( $enforcer, 'init' ) );
```

###  Health Score

31

—

LowBetter than 65% of packages

Maintenance40

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

2

Last Release

506d ago

PHP version history (2 changes)v1.0.0PHP ^7.4|^8.0

v1.1.0PHP ^7.4|^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8350223?v=4)[Gene Alyson Fortunado Torcende](/maintainers/kermage)[@kermage](https://github.com/kermage)

---

Top Contributors

[![kermage](https://avatars.githubusercontent.com/u/8350223?v=4)](https://github.com/kermage "kermage (13 commits)")

---

Tags

wordpresswordpress-plugins

### Embed Badge

![Health badge](/badges/themeplate-enforcer/health.svg)

```
[![Health](https://phpackages.com/badges/themeplate-enforcer/health.svg)](https://phpackages.com/packages/themeplate-enforcer)
```

###  Alternatives

[yassi/nova-nested-form

A Laravel Nova package that allows you to create/update/delete nested related fields from a parent form.

239508.6k](/packages/yassi-nova-nested-form)[thamtech/yii2-uuid

Yii 2 UUID Helper

35370.4k7](/packages/thamtech-yii2-uuid)[reefki/laravel-device-detector

Laravel wrapper for Matomo's Universal Device Detection library.

3182.4k](/packages/reefki-laravel-device-detector)[trentrichardson/cakephp-scheduler

Makes scheduling tasks in CakePHP much simpler.

3144.4k](/packages/trentrichardson-cakephp-scheduler)[collegeman/fuerte

2527.0k](/packages/collegeman-fuerte)

PHPackages © 2026

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