如何添加发票忍者"在Laravel 5.1?

时间:2015-11-03 20:12:36

标签: laravel composer-php laravel-5.1 invoice

"作曲家需要hillelcoren / invoice-ninja"对我不起作用并发出以下错误:

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

Problem 1
- hillelcoren/invoice-ninja v2.4.5 requires laravel/framework 5.0.* -> no matching package found.
- hillelcoren/invoice-ninja v2.4.4 requires laravel/framework 5.0.* -> no matching package found.
- hillelcoren/invoice-ninja v2.4.3 requires laravel/framework 5.0.* -> no matching package found.
- hillelcoren/invoice-ninja v2.4.2 requires laravel/framework 5.0.* -> no matching package found.
- hillelcoren/invoice-ninja v2.4.1 requires laravel/framework 5.0.* -> no matching package found.
- hillelcoren/invoice-ninja v2.4.0 requires laravel/framework 5.0.* -> no matching package found.
- Installation request for hillelcoren/invoice-ninja ^2.4 -> satisfiable by hillelcoren/invoice-ninja[v2.4.0, v2.4.1, v2.4.2, v2.4.3, v2.4.4, v2.4.5].

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.

这是否意味着NinjaInvoice不支持更新版本的Laravel?请有人解决问题。

1 个答案:

答案 0 :(得分:0)

正如Bogdan建议的那样,此套餐仅适用于Laravel 5.0。*根据包[composer.json][1]

当涉及到安装包时,它们可以拥有自己的依赖项或随后需要运行的包,在这种情况下,它被格式化为在5.0上运行。*因此运行Laravel 5.1使其不兼容。

同样,正如波格丹所说,记录问题是了解他们是否能支持5.1的好方法。

查看未解决的问题,您已完成此操作并打开one

与此同时,您将需要等待5.1支持或寻找类似的包。

Bogdan给出的原始评论,但作为回答给出了正式答案。