PHPackages                             mundschenk-at/check-wp-requirements - 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. mundschenk-at/check-wp-requirements

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

mundschenk-at/check-wp-requirements
===================================

A class to allow WordPress plugins to check certain runtime requirements before activation.

v2.1.1(1y ago)025.2k↑110.9%3GPL-2.0-or-laterPHPPHP &gt;=7.4.0CI passing

Since Feb 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mundschenk-at/check-wp-requirements)[ Packagist](https://packagist.org/packages/mundschenk-at/check-wp-requirements)[ RSS](/packages/mundschenk-at-check-wp-requirements/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (14)Versions (11)Used By (3)

check-wp-requirements
=====================

[](#check-wp-requirements)

[![Build Status](https://github.com/mundschenk-at/check-wp-requirements/actions/workflows/ci.yml/badge.svg)](https://github.com/mundschenk-at/check-wp-requirements/actions/workflows/ci.yml/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/1c4d68ce68443fd02bfbe114e85f0dd4e65a517837d29923feeb531e3e4e966a/68747470733a2f2f706f7365722e707567782e6f72672f6d756e64736368656e6b2d61742f636865636b2d77702d726571756972656d656e74732f762f737461626c65)](https://packagist.org/packages/mundschenk-at/check-wp-requirements)[![Coverage](https://camo.githubusercontent.com/1ba129aa44b8e670729b33497cccc2dc9bb3bb4068fe3a83280c52bed8046842/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6d756e64736368656e6b2d61745f636865636b2d77702d726571756972656d656e7473266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=mundschenk-at_check-wp-requirements)[![License](https://camo.githubusercontent.com/b640af4445b9461034f3dcf163a3188a5bc712a7ac5444cde78167ebd62efb43/68747470733a2f2f706f7365722e707567782e6f72672f6d756e64736368656e6b2d61742f636865636b2d77702d726571756972656d656e74732f6c6963656e7365)](https://packagist.org/packages/mundschenk-at/check-wp-requirements)

A helper class for WordPress plugins to check PHP version and other requirements.

Requirements
------------

[](#requirements)

- PHP 7.4.0 or above
- WordPress 5.2 or higher.

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

[](#installation)

The best way to use this package is through Composer:

```
$ composer require mundschenk-at/check-wp-requirements
```

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

[](#basic-usage)

1. Create a `\Mundschenk\WP_Requirements` object and set the requirements in the constructor.
2. Call the `\Mundschenk\WP_Requirements::check()` method and start your plugin normally if it returns `true`.

```
// Set up autoloader.
require_once __DIR__ . '/vendor/autoload.php';

/**
 * Load the plugin after checking for the necessary PHP version.
 *
 * It's necessary to do this here because main class relies on namespaces.
 */
function run_your_plugin() {

	$requirements = new \Mundschenk\WP_Requirements( 'Your Plugin Name', __FILE__, 'your-textdomain', [
		'php'       => '8.1.0',
		'multibyte' => true,
		'utf-8'     => false,
	] );

	if ( $requirements->check() ) {
		// Autoload the rest of your classes.

		// Create and start the plugin.
		...
	}
}
run_your_plugin();
```

License
-------

[](#license)

check-wp-requirements is licensed under the GNU General Public License 2 or later - see the [LICENSE](LICENSE) file for details.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance43

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity69

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

Recently: every ~625 days

Total

10

Last Release

449d ago

Major Versions

v0.4.0 → 1.0.x-dev2018-04-22

v1.0.0 → v2.0.02019-06-25

PHP version history (2 changes)v0.1.0PHP &gt;=5.2.0

v2.1.0PHP &gt;=7.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/e4291c13955e1a8cc80aae357d84fa757e03f856728abe2e081fa3278abdd6a5?d=identicon)[Der Mundschenk &amp; Compagnie](/maintainers/Der%20Mundschenk%20&%20Compagnie)

---

Top Contributors

[![mundschenk-at](https://avatars.githubusercontent.com/u/6943905?v=4)](https://github.com/mundschenk-at "mundschenk-at (59 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mundschenk-at-check-wp-requirements/health.svg)

```
[![Health](https://phpackages.com/badges/mundschenk-at-check-wp-requirements/health.svg)](https://phpackages.com/packages/mundschenk-at-check-wp-requirements)
```

PHPackages © 2026

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