7 laravel
我想安装一个带有“composer require rpsimao/invoicexpress-api”的包,但出现错误:
Using version ^0.5.6 for rpsimao/invoicexpress-api
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for rpsimao/invoicexpress-api ^0.5.6 -> satisfiable by rpsimao/invoicexpress-api[0.5.6].
- rpsimao/invoicexpress-api 0.5.6 requires laravel/framework 5.4.* -> satisfiable by laravel/framework[5.4.x-dev, v5.4.0, v5.4.1, v5.4.10, v5.4.11, v5.4.12, v5.4.13, v5.4.14, v5.4.15, v5.4.16, v5.4.17, v5.4.18, v5.4.19, v5.4.2, v5.4.20, v5.4.21, v5.4.22, v5.4.23, v5.4.24, v5.4.25, v5.4.26, v5.4.27, v5.4.28, v5.4.29, v5.4.3, v5.4.30, v5.4.31, v5.4.32, v5.4.33, v5.4.34, v5.4.35, v5.4.36, v5.4.4, v5.4.5, v5.4.6, v5.4.7, v5.4.8, v5.4.9] but these conflict with your requirements or minimum-stability.
Installation failed, reverting ./composer.json to its original content.
Run Code Online (Sandbox Code Playgroud)
你知道如何解决吗?我使用的是laravel 5.5,该包似乎支持该版本,但出现错误。
即使他们说用 Laravel 5.5 进行了测试。* 在自述文件中,composer.json 说它需要两者
\n"laravel/framework": "5.4.*",\n"illuminate/support": "5.4.*",\nRun Code Online (Sandbox Code Playgroud)\n所以如果包的composer.json说它应该是Laravel 5.4.*。您使用的是 laravel 5.5,因此它不兼容。
\n这是标签 0.5.6 的rpsimao/invoicexpress-apicomposer.json文件。查看 Laravel 版本
\n{\n "name": "rpsimao/invoicexpress-api",\n "description": "Laravel Package to interact with InvoiceXpress API",\n "type": "library",\n "keywords": [\n "laravel",\n "rpsimao",\n "invoicexpress-api",\n "invoicexpress",\n "api"\n ],\n "homepage": "https://github.com/rpsimao/invoicexpress-api",\n "license": "MIT",\n "authors": [\n {\n "name": "Ricardo Sim\xc3\xa3o",\n "email": "ricardo.simao@upgrade.pt"\n }\n ],\n "require": {\n "php": "^7.0",\n "guzzlehttp/guzzle": "^6.2.1",\n "guzzlehttp/psr7": "^1.4.1",\n "guzzlehttp/promises": "~1.0",\n "laravel/framework": "5.4.*",\n "illuminate/support": "5.4.*",\n "spatie/array-to-xml": "^2.5"\n },\n "autoload": {\n "psr-4": {\n "rpsimao\\\\InvoiceXpressAPI\\\\": "src/"\n },\n "files":[\n "src/Helpers/invoicexpress-api.php"\n ]\n },\n "require-dev": {\n "phpunit/phpunit": "^6.1",\n "orchestra/testbench": "^3.4"\n },\n "autoload-dev": {\n "psr-4": {\n "rpsimao\\\\InvoiceXpressAPI\\\\Test\\\\": "tests/"\n }\n },\n "extra": {\n "laravel": {\n "providers": [\n "rpsimao\\\\InvoiceXpressAPI\\\\InvoiceXpressAPIServiceProvider"\n ],\n "aliases": {\n "InvoiceXpressClients": "rpsimao\\\\InvoiceXpressAPI\\\\InvoiceXpressAPIFacade"\n }\n }\n }\n}\nRun Code Online (Sandbox Code Playgroud)\n编辑后
\n因此,目前无法与 Laravel 5.5 一起使用,因为 Laravel 5.5 也使用 PHP >=7.0.0,此包使用 Laravel 5.4,而 Laravel 5.4 使用 PHP >=5.6.4。
\n并删除composer.lock文件(如果存在)
\n| 归档时间: |
|
| 查看次数: |
91751 次 |
| 最近记录: |