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.
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
其他信息
- 授权协议: MIT
- 更新时间: 2016-01-20