PHPackages                             bernskioldmedia/wp-dependency-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. bernskioldmedia/wp-dependency-checker

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

bernskioldmedia/wp-dependency-checker
=====================================

A modern way of checking for other plugin dependencies for your WordPress plugin.

1.0.9(4y ago)0824MITPHPPHP ^7.1|^8.0

Since Apr 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/bernskioldmedia/WP-Dependency-Checker)[ Packagist](https://packagist.org/packages/bernskioldmedia/wp-dependency-checker)[ Docs](https://bernskioldmedia.com)[ RSS](/packages/bernskioldmedia-wp-dependency-checker/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)DependenciesVersions (11)Used By (0)

WP Dependency Checker
=====================

[](#wp-dependency-checker)

This is a simple library for a WordPress plugin that check for plugin dependencies.

Often when we do private projects we may require one or more plugins to be active. It just isn't sensible for us to make everything work without. This saves time and money for us and our clients.a

When we do, we find ourselves in need of checking dependencies. This library helps you add it to your plugin in a modern PHP fashion using traits.

If dependencies are not found you can handle them and an admin notice is shown.

Getting started
---------------

[](#getting-started)

All you need to do is include the `Has_Dependencies` trait in the plugin class where you want to check your dependencies. Ideally before you execute any code.

Then specificy a list of plugin dependencies in the `$dependencies` class variable.

```
use BernskioldMedia\WP\WP_Dependency_Checker\Traits\Has_Dependencies;

class My_Plugin {

    use Has_Dependencies;

    protected static $dependencies = [
        'My Dependency' => 'folder/main-file.php',
    ];

}

```

When you need to check for your dependencies, you then run an if:

```
if(self::has_dependencies()) {
    // Run my code
}

```

The `has_dependencies` function will automatically show an admin notice if falsy.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

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

Recently: every ~100 days

Total

10

Last Release

1808d ago

PHP version history (2 changes)1.0.0PHP ^7.1

1.0.9PHP ^7.1|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/51986177e3badf5ae6cd008a309befe4ec88264bd518c1a623bd33f5cebc0fc5?d=identicon)[bernskiold](/maintainers/bernskiold)

---

Top Contributors

[![ErikBernskiold](https://avatars.githubusercontent.com/u/1166728?v=4)](https://github.com/ErikBernskiold "ErikBernskiold (14 commits)")

---

Tags

dependency-managertraitwordpresswordpress-helperswordpress

### Embed Badge

![Health badge](/badges/bernskioldmedia-wp-dependency-checker/health.svg)

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

###  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)[typisttech/wp-admin-notices

A simplified OOP implementation of the WordPress admin notices

141.2k](/packages/typisttech-wp-admin-notices)

PHPackages © 2026

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