PHPackages                             dangoodman/composer-for-wordpress - 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. dangoodman/composer-for-wordpress

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

dangoodman/composer-for-wordpress
=================================

2.0.2(5y ago)965.9k↑29.6%212MITPHP

Since Jan 20Pushed 4y ago4 watchersCompare

[ Source](https://github.com/dangoodman/composer-for-wordpress)[ Packagist](https://packagist.org/packages/dangoodman/composer-for-wordpress)[ RSS](/packages/dangoodman-composer-for-wordpress/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (7)Used By (12)

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

[](#composer-for-wordpress)

A plugin for Composer package manager making it working a bit better for WordPress plugins.

For now, the only purpose of the project is to fix the following error when there is a WordPress plugin built with an obsolete pre-PSR-4 Composer version:

```
Fatal error: Call to undefined method Composer\Autoload\ClassLoader::setPsr4()
in /wp-content/plugins//vendor/composer/autoload_real.php on line 33

```

The plugin patches Composer's autoload scripts every time they are changed due to `composer install`, `composer update`, or other Composer actions.

[More info and discussion](https://github.com/composer/composer/issues/3852)

Installation
------------

[](#installation)

Require the package in your project's `composer.json`:

```
{
    "require-dev": {
        "dangoodman/composer-for-wordpress": "^2.0"
    }
}
```

To set a custom class loader suffix add to your `composer.json`:

```
{
    "config": {
        "classloader-suffix": "MySuffix"
    }
}
```

If it's not set, a random suffix will be generated instead.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 73.3% 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 ~352 days

Recently: every ~409 days

Total

6

Last Release

2009d ago

Major Versions

1.0.2 → 2.0.02018-06-20

### Community

Maintainers

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

---

Top Contributors

[![dangoodman](https://avatars.githubusercontent.com/u/345718?v=4)](https://github.com/dangoodman "dangoodman (11 commits)")[![mundschenk-at](https://avatars.githubusercontent.com/u/6943905?v=4)](https://github.com/mundschenk-at "mundschenk-at (3 commits)")[![aikinomi](https://avatars.githubusercontent.com/u/187411953?v=4)](https://github.com/aikinomi "aikinomi (1 commits)")

---

Tags

composerwordpresswordpress-developmentwordpress-plugin

### Embed Badge

![Health badge](/badges/dangoodman-composer-for-wordpress/health.svg)

```
[![Health](https://phpackages.com/badges/dangoodman-composer-for-wordpress/health.svg)](https://phpackages.com/packages/dangoodman-composer-for-wordpress)
```

###  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)
