PHPackages                             voceconnect/wp-dependencies - 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. voceconnect/wp-dependencies

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

voceconnect/wp-dependencies
===========================

A composer package for WordPress to help manage plugin dependencies.

0.2.1(5y ago)618.7k11GPL-2.0+PHPPHP &gt;=5.2.4

Since Oct 29Pushed 5y ago3 watchersCompare

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

READMEChangelog (3)Dependencies (1)Versions (6)Used By (1)

WP Dependencies
===============

[](#wp-dependencies)

A composer package for WordPress to autoload plugin dependencies.

Usage
-----

[](#usage)

### For Themes and Plugins

[](#for-themes-and-plugins)

##### Require the Dependencies and WP Dependencies Package

[](#require-the-dependencies-and-wp-dependencies-package)

Add a reference to wp-dependencies to your theme's or plugin's composer.json along with any other plugins that need to be active.

```
{
    "name": "my-account/my-theme",
    "type": "wordpress-theme",
    "authors": [
        {
            "name": "John Doe",
            "email": "john@example.com"
        }
    ],
    "repositories": [
        {
            "type": "composer",
            "url" : "http://wp-plugins.packagist.voceconnect.com/"
        },
        ...
    ],
    "config": {
    	"vendor-dir": "vendor"
    },
    "require": {
        "voceconnect/wp-dependencies": "~0.1",
        "wpackagist/thermal-api: "~0.7"
        ...
    }
}

```

#### Add Composer's Autoload

[](#add-composers-autoload)

##### For WordPress Projects

[](#for-wordpress-projects)

Because of the way WordPress loads, it is suggested that the `mu-plugins` directory be set as the vendor. This allows Composer's `autoload.php` to be loaded automatically after WordPress' plugin API has already been setup.

```
{
    ...
    "config": {
        "vendor-dir": "wp-content/mu-plugins"
    },
    ...
}

```

#### For WordPress Themes or Plugins

[](#for-wordpress-themes-or-plugins)

Include Composer's `autoload.php` in the theme's `functions.php` or in your plugin's main file. The below example assume's the plugin's or theme's `vendor-dir` setting `composer.json` is set to `vendor`.

```
// bootstrap composer autoload for dependencies
if(file_exists( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php' ) ) {
	include_once( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php' );
}

```

#### Load Dependencies

[](#load-dependencies)

For dependencies or plugins that do not autoload through composer, you will need to load the dependency through one of two ways.

```
do_action( 'wp_load_dependency', 'some-plugin-name', 'main-plugin-file.php');

```

or

```
if (function_exists('wp_load_dependency')) {
	 wp_load_dependency('some-plugin-name', 'main-plugin-file.php');
}

```

The former action based loading is preferred as it provides more flexibility for future iterations.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

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

Total

5

Last Release

1845d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/68431036eb11480c4075c2363add4d23e8e7b7b28f43396165c5c63cbcbee049?d=identicon)[prettyboymp](/maintainers/prettyboymp)

![](https://www.gravatar.com/avatar/2f9c70d57401b4844db2d0391e4a17919cd1faa95181099c156e6586798b4b98?d=identicon)[kevinlangleyjr](/maintainers/kevinlangleyjr)

![](https://www.gravatar.com/avatar/60c26d865c2615b90378cd9d45d70e3d11f58de984e6831a125ec22672c1d390?d=identicon)[voceconnect](/maintainers/voceconnect)

---

Top Contributors

[![kevinlangleyjr](https://avatars.githubusercontent.com/u/877634?v=4)](https://github.com/kevinlangleyjr "kevinlangleyjr (1 commits)")

### Embed Badge

![Health badge](/badges/voceconnect-wp-dependencies/health.svg)

```
[![Health](https://phpackages.com/badges/voceconnect-wp-dependencies/health.svg)](https://phpackages.com/packages/voceconnect-wp-dependencies)
```

###  Alternatives

[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/builder-plugin

Builder plugin for October CMS

17147.2k1](/packages/rainlab-builder-plugin)[pfefferle/wordpress-activitypub

The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.

5671.4k1](/packages/pfefferle-wordpress-activitypub)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

18238.1k2](/packages/civicrm-civicrm-drupal-8)[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)[humanmade/lottie-lite

A lightweight Lottie Animations Extension for WordPress

374.3k](/packages/humanmade-lottie-lite)

PHPackages © 2026

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