无法添加自己的github存储库的composer依赖项

问题描述 投票:0回答:1

关于作曲家为什么抛出错误的任何想法:

[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

git github composer-php
1个回答
0
投票

要通过作曲家获取软件包,您必须先将其添加到packagist。从here登录packagist,然后添加您的软件包。当您的包裹出现在packagist上时,您可以使用composer提出要求。

© www.soinside.com 2019 - 2024. All rights reserved.