使用 Composer 从 VCS 存储库加载包时,有没有办法指定将内容安装到哪个文件夹(类似于git clone <directory>
)?
例如回购是:
https://github.com/organization/plugin_name.git
因此作曲家文件读取:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/organization/plugin_name.git"
}]
"require": {
"organization/plugin_name": "dev-master",
}
而我希望内容所在的目录不是“plugin_name”,而是“organization_plugin-title”之类的目录。
我有几个 repos(自定义 WP 插件)在我的 WordPress MU 设置中有一个名称,但文件夹名称不同,我真的不想在更新我的作曲家文件后在管理员中手动启用每个。