Php Can';t通过composer安装分叉github存储库
我从Github上的存储库制作了一个fork,并希望将其安装到我的项目中。我有以下composer.jsonPhp Can';t通过composer安装分叉github存储库,php,github,composer-php,Php,Github,Composer Php,我从Github上的存储库制作了一个fork,并希望将其安装到我的项目中。我有以下composer.json { "repositories": [ { "url": "https://github.com/guidobr/instagram-api", "type": "git" } ], "require": { "guidobr/instagram-api
{
"repositories": [
{
"url": "https://github.com/guidobr/instagram-api",
"type": "git"
}
],
"require": {
"guidobr/instagram-api": "*"
}
}
当我尝试安装它时,我得到以下响应:
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package guidobr/instagram-api could not be found in any version, there may be a typo in the package name.
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.
使用包信息加载composer存储库
安装依赖项(包括需要开发人员)
无法将您的需求解析为可安装的软件包集。
问题1
-在任何版本中都找不到请求的程序包guidobr/instagram api,程序包名称中可能有输入错误。
潜在原因:
-软件包名称中的输入错误
-根据您的最低稳定性设置,该软件包没有足够稳定的版本
有关更多详细信息,请参阅。
阅读了解更多常见问题。
我做错了什么?尝试了该链接中的所有解决方案,但都没有成功。您完成了回购,但没有在PackageGist中创建包 如果您检查此文件,它仍在使用cosenary/instagram
因此,转到并创建一个新的包,它需要有一个新的composer.json文件。您分叉了repo,但没有在packagist中创建包 如果您检查此文件,它仍在使用cosenary/instagram
因此,转到并创建一个新的包,它需要有新的composer.json文件。这是一个怎样的解决方案。。。使用VCS选项,它应该在没有PackageGist的情况下工作。这就是“存储库”字段的用途。这是一个怎样的解决方案。。。使用VCS选项,它应该在没有PackageGist的情况下工作。这就是“存储库”字段的用途。