agilo/wp-package-installer
最新稳定版本:0.6.0
Composer 安装命令:
composer require agilo/wp-package-installer
包简介
README 文档
README
(WIP) Enables installing WP plugins via Composer 2 (or Composer 1) inside johnpbloch/wordpress. Replaces drupal-composer/preserve-paths.
- PHP 7.2 - 8.3 is supported
- Composer 1 & 2 is supported
Installation / Usage
mkdir your-project && cd your-projectcomposer init- Add the following to your
composer.jsonextra section:
{
"extra": {
"wordpress-install-dir": "public",
"installer-paths": {
"vendor-wp/wp-content/plugins/{$name}/": ["type:wordpress-plugin"],
"vendor-wp/wp-content/themes/{$name}/": ["type:wordpress-theme"],
"vendor-wp/wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
"vendor-wp/wp-content/{$name}/": ["type:wordpress-dropin"]
},
"agilo-wp-package-installer": {
"sources": {
"third-party": {
"src": "vendor-wp",
"dest": "public",
"mode": "symlink"
}
}
}
}
}
composer require agilo/wp-package-installercomposer require johnpbloch/wordpress
Contributing
Formatting code
- Run
composer install --working-dir=tools/php-cs-fixer - Run
./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix
Running tests
- Run
composer install --working-dir=tools/phpunit - Run
./tools/phpunit/vendor/bin/phpunit
统计信息
- 总下载量: 977
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-04