无法添加自己的 github 存储库的作曲家依赖项

Could not add composer dependency of own github repo

知道作曲家为什么会抛出以下错误:

[InvalidArgumentException]
  Could not find a matching version of package divix1988/laminas-smarty-module. Check the package spelling, your vers
  ion constraint and that the package is available in a stability which matches your minimum-stability (stable).

尝试通过以下方式添加我自己的新依赖项时: composer require divix1988/laminas-smarty-module ?

https://github.com/divix1988/laminas-smarty-module

要通过 composer 获取包,您必须先将其添加到 packagist。从 here 登录 packagist,然后添加您的包。当你的包出现在 packagist 上时,你可以使用 composer 来要求它。

有两种方法:


    "repositories": [
        {
            "type": "vcs",
            "url": "git@github.com:divix1988/laminas-smarty-module.git"
        }
    ],