定制 dangoodman/composer-for-wordpress 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

dangoodman/composer-for-wordpress

最新稳定版本:2.0.2

Composer 安装命令:

composer require dangoodman/composer-for-wordpress

包简介

README 文档

README

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/<plugin-name>/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

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.

统计信息

  • 总下载量: 59.96k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 1
  • 依赖项目数: 12
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 4
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-01-20