承接 webdeveric/wordpress-muplugin-installer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

webdeveric/wordpress-muplugin-installer

最新稳定版本:3.0.1

Composer 安装命令:

composer require webdeveric/wordpress-muplugin-installer

包简介

Install WordPress must-use plugins with Composer

README 文档

README

composer require webdeveric/wordpress-muplugin-installer

The Multi-Framework Composer Library Installer does not completely install WordPress must-use plugins. It does put the plugin in the mu-plugins folder, but that isn't enough to be recognized as a must-use plugin by WordPress.

This plugin addresses that by copying the plugin entry point file into the mu-plugins folder. Your plugin can indicate which file is the main entry point by specifying it in the extra section of your composer.json file.

{
  "name": "scope/mu-plugin",
  "description": "Just another must-use plugin",
  "type": "wordpress-muplugin",
  "extra": {
    "wordpress-muplugin-entry": "your-plugin-entry-point-file.php"
  },
  "require": {
    "webdeveric/wordpress-muplugin-installer": "^2.0"
  }
}

If you do not specify wordpress-muplugin-entry, this plugin will figure out which PHP files are WordPress plugins by looking for Plugin Name: in the first 8 kilobytes of each PHP file in the root of your plugin folder.

Git hooks

Run this to install a git hook that will run PHPCS, PHPMD, and PHPUnit before you commit.

composer setup-hooks

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-28