PHPackages                             zombie-flesh-eaters/mu-loader - 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. zombie-flesh-eaters/mu-loader

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

zombie-flesh-eaters/mu-loader
=============================

Composer 2 plugin that generates a WordPress MU-plugin autoloader file from configured folders.

v0.0.3(4mo ago)03MITPHPPHP ^7.4 || ^8.0

Since Feb 19Pushed 4mo agoCompare

[ Source](https://github.com/zombie-flesh-eaters/mu-loader)[ Packagist](https://packagist.org/packages/zombie-flesh-eaters/mu-loader)[ RSS](/packages/zombie-flesh-eaters-mu-loader/feed)WikiDiscussions master Synced today

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

mu-loader
=========

[](#mu-loader)

Composer 2 plugin for WordPress that generates a single MU-plugin loader file from one or more configured folders.

Install
-------

[](#install)

```
composer require zombie-flesh-eaters/mu-loader
```

How it works
------------

[](#how-it-works)

On Composer autoload dump (`install`, `update`, or `dump-autoload`), this package:

1. Scans configured MU-plugin folders and includes:
    - top-level `.php` files in the MU root
    - one entry file per plugin directory (`/.php`)
2. Writes a generated loader file with `require_once` statements.

Default output file:

- `wp-content/mu-plugins/000-mu-loader.php`

Configuration
-------------

[](#configuration)

Set config in your project `composer.json` under `extra.mu-loader`.

```
{
  "extra": {
    "mu-loader": {
      "paths": [
        "wp-content/mu-plugins",
        "web/app/mu-plugins"
      ],
      "output": "wp-content/mu-plugins/000-mu-loader.php",
      "exclude": [
        "wp-content/mu-plugins/some-file-to-skip.php"
      ]
    }
  }
}
```

### Options

[](#options)

- `paths` (`string|array`, default: `["wp-content/mu-plugins"]`)
- `output` (`string`, default: first existing path + `/000-mu-loader.php`)
- `exclude` (`string|array`, default: `[]`) absolute or relative file paths to skip

Notes
-----

[](#notes)

- The output file is generated; manual edits are overwritten.
- Only existing directories in `paths` are scanned.

Testing
-------

[](#testing)

Run the integration test:

```
composer run test:integration
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance75

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

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

Total

3

Last Release

134d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/zombie-flesh-eaters-mu-loader/health.svg)

```
[![Health](https://phpackages.com/badges/zombie-flesh-eaters-mu-loader/health.svg)](https://phpackages.com/packages/zombie-flesh-eaters-mu-loader)
```

###  Alternatives

[symfony/runtime

Enables decoupling PHP applications from global state

74798.8M1.0k](/packages/symfony-runtime)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5344.1M564](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2124.7M203](/packages/drupal-core-project-message)[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.

3014.6M26](/packages/vaimo-composer-patches)[sandersander/composer-link

Adds ability to link local packages for development with composer

98457.9k](/packages/sandersander-composer-link)[phpro/grumphp-shim

GrumPHP Phar distribution

294.7M340](/packages/phpro-grumphp-shim)

PHPackages © 2026

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