zombie-flesh-eaters/mu-loader 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zombie-flesh-eaters/mu-loader

最新稳定版本:v0.0.3

Composer 安装命令:

composer require zombie-flesh-eaters/mu-loader

包简介

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

README 文档

README

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

Install

composer require zombie-flesh-eaters/mu-loader

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 (<slug>/<slug>.php)
  2. Writes a generated loader file with require_once statements.

Default output file:

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

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

  • 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

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

Testing

Run the integration test:

composer run test:integration

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固