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

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

wearerequired/wp-requirements-check
===================================

Simple requirements checking class

1.1.0(7y ago)1316.1k↓50%32GPL-2.0+PHP

Since May 2Pushed 7y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (4)Used By (2)

WP Requirements Check
=====================

[](#wp-requirements-check)

Simple drop-in class to check minimum PHP and WordPress version requirements in your plugin.

Usage
-----

[](#usage)

1. Run `composer require wearerequired/wp-requirements-check`
2. In your main plugin file, instantiate the class using something like this:

```
$requirements_check = new WP_Requirements_Check( array(
	'title' => 'My awesome plugin',
	'php'   => '7.0',
	'wp'    => '4.7',
	'file'  => __FILE__,
	'i18n'  => array(
		/* translators: 1: plugin name. 2: minimum PHP version. */
		'php' => __( '&#8220;%1$s&#8221; requires PHP %2$s or higher. Please upgrade.', 'my-plugin' ),
		/* translators: 1: plugin name. 2: minimum WordPress version. */
		'wp'  => __( '&#8220;%1$s&#8221; requires WordPress %2$s or higher. Please upgrade.', 'my-plugin' ),
	),
) );

if ( $requirements_check->passes() ) {
	// Proceed.
}
```

Credits
-------

[](#credits)

Thanks to Mark Jaquith for his [grunt-wp-plugin](https://github.com/markjaquith/grunt-wp-plugin) template which contains similar code.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 56.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 ~339 days

Total

3

Last Release

2625d ago

### Community

Maintainers

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

---

Top Contributors

[![swissspidy](https://avatars.githubusercontent.com/u/841956?v=4)](https://github.com/swissspidy "swissspidy (13 commits)")[![ocean90](https://avatars.githubusercontent.com/u/617637?v=4)](https://github.com/ocean90 "ocean90 (5 commits)")[![grappler](https://avatars.githubusercontent.com/u/1785641?v=4)](https://github.com/grappler "grappler (2 commits)")[![luizbills](https://avatars.githubusercontent.com/u/1798830?v=4)](https://github.com/luizbills "luizbills (2 commits)")[![derpaschi](https://avatars.githubusercontent.com/u/1146235?v=4)](https://github.com/derpaschi "derpaschi (1 commits)")

---

Tags

wordpresswordpress-pluginwordpressrequirements

### Embed Badge

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

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

###  Alternatives

[tgmpa/tgm-plugin-activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins).

1.8k222.5k13](/packages/tgmpa-tgm-plugin-activation)[aristath/kirki

Extending the WordPress customizer

1.3k73.0k4](/packages/aristath-kirki)[afragen/git-updater

A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs.

3.3k1.6k](/packages/afragen-git-updater)[justintadlock/hybrid-carbon

God-like post featured image script.

202.5k](/packages/justintadlock-hybrid-carbon)

PHPackages © 2026

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