[英]when i try to install composer require riazxrazor/payumoney it gives me an error
I want to install riazxrazor/payumoney for laravel 5.8 but when I try to install composer require riazxrazor/payumoney
it gives me an error: 我想为laravel 5.8安装riazxrazor / payumoney ,但是当我尝试安装
composer require riazxrazor/payumoney
却给我一个错误:
This package isn't compatible with Laravel 5.8. 该软件包与Laravel 5.8不兼容。
The Composer error message says symfony/http-foundation
is the problem. Composer错误消息指出
symfony/http-foundation
是问题所在。 This can happen when two projects--Laravel, and this Composer package--require different versions of the same library. 当两个项目(Laravel和此Composer软件包)需要同一库的不同版本时,可能会发生这种情况。
Laravel 5.8's Illuminate\\Http requires: Laravel 5.8的Illuminate \\ Http要求:
"symfony/http-foundation": "^4.2",
riazXrazor/payumoey requires: riazXrazor / payumoey要求:
"symfony/http-foundation": "~2.6|~3.0"
The package would need to be updated to support newer versions of Laravel. 该软件包将需要更新以支持Laravel的较新版本。
For this package( riazxrazor/payumoney ), you just have to run this command at your command prompt 对于此软件包( riazxrazor / payumoney ),您只需在命令提示符下运行此命令
composer require riazxrazor/payumoney
After, you need to add this line in the provider section. 之后,您需要在提供者部分中添加此行。 Open the
config/app.php
: 打开
config/app.php
:
Riazxrazor\Payumoney\PayumoneyServiceProvider::class,
add this line in the aliases
section: 在
aliases
部分添加以下行:
'Payumoney' => Riazxrazor\Payumoney\PayumoneyFacade::class
Also, you have to fulfill the requirement of this package riazxrazor/payumoney 另外,您必须满足此程序包riazxrazor / payumoney的要求。
requires 要求
php: >=5.5.0
symfony/options-resolver: ~2.6|~3.0
symfony/http-foundation: ~2.6|~3.0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.