PHPackages                             wp-plus/composer-autoload - 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. wp-plus/composer-autoload

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

wp-plus/composer-autoload
=========================

Composer Autoload for WordPress: automagically require the autoload.php generated by Composer (as a must-use plugin).

v1.0.2(8mo ago)078MITPHPPHP ^8.0

Since Apr 4Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/wp-plus/composer-autoload)[ Packagist](https://packagist.org/packages/wp-plus/composer-autoload)[ RSS](/packages/wp-plus-composer-autoload/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Composer Autoload for WordPress
===============================

[](#composer-autoload-for-wordpress)

**Seamlessly integrate Composer into a standard WordPress installation.**

This plugin automatically loads Composer’s `vendor/autoload.php` (via an automatically generated **must-use (MU) plugin**), so any Composer-installed libraries are available without modifying WordPress core, themes, plugins or restructuring directories.

**Key features:**

- Drop-in solution for stock WordPress installs
- No changes to `wp-config.php` or core files
- Fully automatic Composer autoloader inclusion
- Works with themes, plugins, or custom PHP libraries managed via Composer

**Usage:**

1. **If Composer is not yet used in the project:**

    - Initialize Composer in your WordPress root: ```
        composer init
        ```
    - Install any libraries you need, e.g.: ```
        composer require monolog/monolog
        ```
    - Require this plugin: ```
        composer require wp-plus/composer-autoload
        ```
    - Done - all Composer dependencies, including the newly added ones, are automatically available in WordPress.
2. **If the project is already using Composer:**

    - Require this plugin via Composer: ```
        composer require wp-plus/composer-autoload
        ```
    - Done - your existing Composer dependencies are now autoloaded in WordPress.
    - **Optional cleanup:** remove any hardcoded `require 'vendor/autoload.php'` lines from your theme or plugin files, as this plugin handles it automatically.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance58

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

3

Last Release

269d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/191ace8a9eeaa316ba5321d33ad6c61b4881e0becc8d7e7fe9e881683520d13a?d=identicon)[zoliszabo](/maintainers/zoliszabo)

---

Top Contributors

[![zoliszabo](https://avatars.githubusercontent.com/u/9949042?v=4)](https://github.com/zoliszabo "zoliszabo (6 commits)")

---

Tags

autoloadcomposerphpwordpress

### Embed Badge

![Health badge](/badges/wp-plus-composer-autoload/health.svg)

```
[![Health](https://phpackages.com/badges/wp-plus-composer-autoload/health.svg)](https://phpackages.com/packages/wp-plus-composer-autoload)
```

###  Alternatives

[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M16](/packages/vaimo-composer-patches)[mglaman/composer-drupal-lenient

1317.4M15](/packages/mglaman-composer-drupal-lenient)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5341.9M446](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2122.6M172](/packages/drupal-core-project-message)[olvlvl/composer-attribute-collector

A convenient and near zero-cost way to retrieve targets of PHP 8 attributes

184108.8k8](/packages/olvlvl-composer-attribute-collector)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

41716.4k2](/packages/lullabot-drainpipe)

PHPackages © 2026

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