简体   繁体   English

当我尝试安装作曲家要求riazxrazor / payumoney时,出现错误

[英]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却给我一个错误:

enter image description here 在此处输入图片说明

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.

相关问题 当我尝试要求“作曲家需要 unisharp/laravel-ckeditor”时,它给了我这个。 是什么原因? - When i try to require “ composer require unisharp/laravel-ckeditor”, it gives me this. What is the reason? PHP-当我需要时,它给了我一个浏览错误 - Php - When I require, it gives me a browsing error 当我尝试创建表时,SQL或mariadb给我此错误 - SQL or mariadb gives me this error when I try to create a table 当我尝试命令 composer global require "laravel/installer" 时,这个错误在我的终端上意味着什么? - What does this error mean on my Terminal when I try to command composer global require "laravel/installer"? 更新了 composer.json 中的 symfony,但在尝试安装带有“require”的新包时出现错误 - Updated symfony in composer.json, but I get an error when trying to install a new package with "require" 虽然我正确创建了路线但是当我尝试显示页面时它给了我一个找不到错误页面 - Although I created the route correctly But when I try to show the page It gives me an error page not found curl已安装且正在运行,但在运行“ php composer.phar install”时出现错误 - curl is installed and working but gives error when i run “php composer.phar install” 有人可以在这个地方帮助我吗? 在 laravel 版本 5.8 中运行命令“composer require laravel / socialite”时出现错误 - Can someone help me in this place? I get an error when running the command "composer require laravel / socialite" in laravel version 5.8 我正在尝试安装 laravel 6 pdf 包“composer 需要 barryvdh/laravel-dompdf” - i am try to install laravel 6 pdf package "composer require barryvdh/laravel-dompdf" 尝试安装作曲家时,cmd line mac给了我奇怪的输出 - cmd line mac gives me weird output when trying to install composer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM