Php 编写器:未找到匹配的包

Php 编写器:未找到匹配的包,php,github,composer-php,packagist,Php,Github,Composer Php,Packagist,我创建了一个正在开发的小部件。问题是,当我运行时: composer require chofoteddy/yii2-bootstrap-wizard "*" 我得到以下信息: Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for chofoteddy/yii2-bootstrap-wizard * ->

我创建了一个正在开发的小部件。问题是,当我运行时:

composer require chofoteddy/yii2-bootstrap-wizard "*"
我得到以下信息:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for chofoteddy/yii2-bootstrap-wizard * -> satisfiable by chofoteddy/yii2-bootstrap-wizard[dev-master].
    - chofoteddy/yii2-bootstrap-wizard dev-master requires vinceg/twitter-bootstrap-wizard * -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.
作曲家信息:

sudo composer self-update
You are already using composer version b2173d28fc8b56236eddc8aa10dcda61471633ec.

因为
VinceG/twitter引导向导
不是一个Composer包(它不包括
Composer.json
),所以您必须在
Composer.json中定义它

您的存储库部分应如下所示:

“存储库”:[
{
“类型”:“包”,
“一揽子计划”:{
“名称”:“VinceG/twitter引导向导”,
“版本”:“1.2”,
“地区”:{
“url”:”https://github.com/VinceG/twitter-bootstrap-wizard/archive/1.2.zip",
“类型”:“zip”
},
“来源”:{
“url”:”https://github.com/VinceG/twitter-bootstrap-wizard.git",
“类型”:“git”,
“参考文件”:“1.2”
}
}
}
],

您还可以查看并了解如何在composer中管理组件和bower包。

问题可能是项目根composer.json中定义的最低稳定性(如果未定义,则默认为稳定)

由于bower存储库尚未发布,您应该:

  • “VinceG/twitter引导向导”:“@dev”
  • 定义最小稳定性:“@dev”
  • 请注意,如果您从其他项目使用此包,则需要在该项目中定义最低稳定性:“@dev”,或者定义 “VinceG/twitter引导向导”:“root composer.json中的“@dev”

    composer中还有一个选项,允许您指定:“首选稳定”

    更多信息:

    请提供一份详细的报告。发布存储库不是实现这一点的方法。祝你好运谢谢Rick,我修改了内容以添加更多信息
    sudo composer self-update
    You are already using composer version b2173d28fc8b56236eddc8aa10dcda61471633ec.