【发布时间】:2017-05-07 14:14:14
【问题描述】:
我正在尝试使用 composer 在自定义路径中从 git 安装存储库,因为我使用的是 WordPress 的 Bedrock。
在我的composer.json 中有这段代码:
// ...
repositories: [{
"type": "package",
"package": {
"name": "juniorgarcia/acf-gme",
"version": "1.0.2",
"source": {
"url": "https://github.com/juniorgarcia/acf-gme",
"type": "git",
"reference": "master"
}
}
}]
// ...
"extra": {
"installer-paths": {
"web/app/plugins/{$name}/": ["type:wordpress-plugin"]
}
}
我的仓库的composer.json有以下内容:
{
"name": "juniorgarcia/acf-gme",
"type": "wordpress-plugin",
"description": "A extended version of ACF Google Maps plugin with some more functionality.",
"require": {
"composer/installers": "~1.0"
},
"extra": {
"installer-name": "advanced-custom-fields-google-map-extended"
}
}
我按照作曲家的指示将其安装在自定义路径上,但没有成功。它安装在vendor。我做错了什么?
【问题讨论】:
标签: php wordpress git composer-php