creode/mu-plugin-installer
Composer 安装命令:
composer require creode/mu-plugin-installer
包简介
Facilitates WordPress MU-Plugin installation and separates them into different files.
README 文档
README
This is a Composer plugin that installs mu plugins into the wp-content/mu-plugins directory. This differs from other solutions as each mu-plugin has it's own dedicated entrypoint file. This means that mu-plugins screen in WordPress has a more accurate representation of which plugins are installed and at what version they are running.
Installation
You can install this package as part of your mu-plugin's composer.json file.
composer require creode/mu-plugin-installer
Usage
Add the following to your composer.json file of your mu-plugin:
{
"extra": {
"wordpress-muplugin-entry": "{an-entrypoint-file-name}.php"
}
}
Supported Package Types
wordpress-muplugin
Available Placeholders
:PLUGIN_VERSION:- The version of the plugin which will be pulled in dynamically from composer at install time.
Example
Below is an example of a mu-plugin entrypoint file that will be installed into the wp-content/mu-plugins directory. This demonstrates the use of the :PLUGIN_VERSION: placeholder.
/** * Plugin Name: WordPress Blocks * Description: WordPress Blocks plugin used by Creode to assist in the development of WordPress blocks. * Version: :PLUGIN_VERSION: * * @package Creode Blocks */ // This is a loader for the plugin from the parent directory to handle MU Plugin installation. require_once __DIR__ . '/wordpress-blocks/plugin.php';
The above example will install the plugin into the wp-content/mu-plugins directory and create a file called wordpress-blocks.php in the wp-content/mu-plugins directory. The file will contain the following content:
/** * Plugin Name: WordPress Blocks * Description: WordPress Blocks plugin used by Creode to assist in the development of WordPress blocks. * Version: 1.9.0 * * @package Creode Blocks */ // This is a loader for the plugin from the parent directory to handle MU Plugin installation. require_once __DIR__ . '/wordpress-blocks/plugin.php';
creode/mu-plugin-installer 适用场景与选型建议
creode/mu-plugin-installer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 832 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 08 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 creode/mu-plugin-installer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 creode/mu-plugin-installer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 creode/mu-plugin-installer 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This module allows drag & drop grouping of items in a GridField
Adds text size controls and text-to-speech controls to Flarum discussion content.
Native Blade date, datetime, and date range pickers.
Symfony and Flysystem integration for the maintained KCFinder continuation.
Laravel integration for the maintained KCFinder continuation.
PHPStan rules shared across KnpLabs organization projects
统计信息
- 总下载量: 832
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2025-08-01