PHPackages                             ultraleet/wp-requirements-checker - 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. ultraleet/wp-requirements-checker

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

ultraleet/wp-requirements-checker
=================================

Helper library for WordPress plugins to check for minimum PHP and WP versions.

1.1.0(6y ago)1231MITPHP

Since Oct 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ultraleettech/wp-requirements-checker)[ Packagist](https://packagist.org/packages/ultraleet/wp-requirements-checker)[ RSS](/packages/ultraleet-wp-requirements-checker/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (4)Used By (0)

WordPress Requirements Checker
==============================

[](#wordpress-requirements-checker)

Helper library for WordPress plugins to check for minimum PHP and WP versions.

When there's any version mismatch when your plugin is activated, the library will display notices about required versions on the admin page. It will also automatically deactivate the plugin.

This way, when unsupported PHP language features or WP functionality is used in your plugin, it won't break the site and make it difficult for the admin to fix the issues.

Since version 1.1.0, you can also add in other plugins that your plugin depends on (for instance, when creating an add-on).

Usage
-----

[](#usage)

There are multiple ways to use this library, depending on the way you are developing your plugin. The main ones are using Composer, and just including the library manually. You can find instructions for both of these below.

### Using Composer

[](#using-composer)

Require the library like so:

```
composer require ultraleet/wp-requirements-checker

```

In your main plugin file, first make sure that the Composer autoloader is included:

```
require_once('vendor/autoload.php');
```

Then, instantiate the library and check the requirements. Make sure you continue loading your plugin only when the check passes:

```
$requirementsChecker = new \Ultraleet\WP\RequirementsChecker(array(
    'title' => 'My WordPress Plugin Title', // Required
    'file' => __FILE__, // Required
    'php' => '7.2',
    'wp' => '4.9',
    'plugins' => array(
        'Required Plugin' => 'plugin-dir/plugin-file.php',
    ),
));

if ($requirementsChecker->passes()) {
    // Continue loading your plugin from separate files and/or classes.
}

// This should be the end of the main plugin file.
```

Note, that only elements with the comment 'Required' are needed for the library to work. You can pick and choose which ones of the other options you want to check for.

### Using manual loading

[](#using-manual-loading)

Download the file `src/RequirementsChecker.php` from this repository and place it somewhere within your project tree.

Let's say you placed it in the `lib` directory in your plugin root. Then include the file in your main plugin file:

```
require_once('lib/RequirementsChecker.php');
```

The rest of the process is exactly the same as shown above.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

2407d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d85a960614ecd7f20f25046d853dfcc9b39ae5f80238594054c164aa824b2240?d=identicon)[ultraleet](/maintainers/ultraleet)

---

Top Contributors

[![leetdev](https://avatars.githubusercontent.com/u/14195735?v=4)](https://github.com/leetdev "leetdev (5 commits)")

### Embed Badge

![Health badge](/badges/ultraleet-wp-requirements-checker/health.svg)

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

###  Alternatives

[jonom/silverstripe-betternavigator

Front-end utility menu for Silverstripe websites featuring administration and development tools

61417.1k11](/packages/jonom-silverstripe-betternavigator)[jxlwqq/star-rating

Star Rating extension for laravel-admin.

226.2k](/packages/jxlwqq-star-rating)

PHPackages © 2026

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