我有一个 git 仓库:https://github.com/hounded/FPDFbundle,这个仓库已经添加到了 Packagist:https://packagist.org/packages/hounded/fpdfbundle,你可以在 git 仓库中看到 composer.json 文件。
然而,当我运行时:
{
"name" : "hounded/fpdfbundle",
"description" : "A pdf bundle",
"type" : "symfony-bundle",
"authors" : [{
"name" : "James Whiteman"
}],
"keywords" : ["pdf bundle"],
"license" : ["MIT"],
"require" : {
"symfony/framework-bundle": "~2.3",
"sensio/framework-extra-bundle": "~3.0,>=3.0.2"
},
"autoload" : {
"psr-0" : {
"hounded\\FPDFBundle" : ""
}
},
"target-dir" : "hounded/FPDFBundle",
"extra" : {
"branch-alias" : {
"dev-master" : "0.1.x-dev"
}
},
"minimum-stability": "dev"
}
然而,当我运行时:
composer require hounded/fpdfbundle
我收到了“找不到hounded/fpdfbundle包”的错误信息。
我想帮助社区,但我不知道自己做错了什么。
"hounded/fpdfbundle": "dev-master"
? - Praveeshpackage.json
文件中指定稳定性标志。 - Praveesh"hounded/fpdfbundle": "dev-master"
来成功安装了这个包。 - Praveesh