不能通过composer安装分叉的github存储库


Can't install forked github repository via composer

我从Github上的一个存储库中创建了一个分支,并希望将其安装在我的项目上。我有以下composer.json

{
    "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.

我做错了什么?从那个链接尝试了所有的解决方案,但没有一个成功。

您fork了repo,但是您没有在packagist中创建一个包。

如果你检查这个文件https://github.com/GuidoBR/instagram-api/blob/master/composer.json它仍然在使用cosenary/instagram

所以转到http://www.packagist.com/并创建一个新包,它将需要有新的编写器。json文件。