我正在尝试让 Composer 从该项目中下载以下库,但是其中没有composer.json
文件,因此我不确定是否可行。
{
"require" : {
"fguillot/picoFeed" : "*"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/fguillot/picoFeed"
}
]
}
错误:
最佳答案
要包括非作曲者存储库,您需要设置package repository。这会给你类似的东西:
{
"repositories": [
{
"type": "package",
"package": {
"name": "fguillot/picoFeed",
"version": "dev-master",
"source": {
"url": "https://github.com/fguillot/picoFeed",
"type": "git",
"reference": "origin/master"
}
}
}
],
"require": {
"fguillot/picoFeed": "dev-master"
}
}