在我的本地机器上,我有php v7.0.3.我的一个项目依赖于php v5.5.
正如预期的那样,一场简单的composer install崩溃:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- This package requires php ~5.5 but your PHP version (7.0.3) does not satisfy that requirement.
Run Code Online (Sandbox Code Playgroud)
我知道我可以通过以下方式忽略该平台:
composer install --ignore-platform-reqs
Run Code Online (Sandbox Code Playgroud)
但我经常忘记添加旗帜.然而,由于应用程序在docker容器内运行,不匹配的php可以安装依赖项一样好.
所以我想知道是否有办法让我的本地作曲家总是假设--ignore-platform-reqs为了不必输入它.
我喜欢避免设置别名并让它在composer配置级别上工作.
下午好
抱歉,我不会说英语,但我会尝试使用谷歌翻译进行交流
首先,重要的是要告知我使用 windows 10 和 php 7.2
我正在尝试在我的系统上进行某种付款方式!但是当输入命令时
phpcomposer.phar 需要“mercadopago/dx-php”或composer 需要“mercadopago/dx-php”
给出以下错误
You are running Composer with SSL/TLS protection disabled.
Using version ^2.2 for mercadopago/dx-php
./composer.json has been updated
Running composer update mercadopago/dx-php
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires PHP extension ext-gd * but it is missing from your system. Install or enable PHP's gd extension.
Problem 2
- …Run Code Online (Sandbox Code Playgroud) 所以我想安装maatwebsite/excel,并且我尝试了几件事但没有成功。有人能帮我吗。我使用 laravel v 9 和 php v 8.1
> Gymnastiar@LAPTOP-NEA31346 MINGW64
> ~/Documents/Gymnastiar/Project/YamahaL8 $ composer require
> maatwebsite/excel Using version ^3.1 for maatwebsite/excel
> ./composer.json has been updated Running composer update
> maatwebsite/excel Loading composer repositories with package
> information Updating dependencies Your requirements could not be
> resolved to an installable set of packages.
>
> Problem 1
> - maatwebsite/excel[3.1.28, ..., 3.1.30] require phpoffice/phpspreadsheet 1.16.* -> satisfiable by
> phpoffice/phpspreadsheet[1.16.0].
> - maatwebsite/excel[3.1.31, ..., 3.1.x-dev] require phpoffice/phpspreadsheet ^1.18 …Run Code Online (Sandbox Code Playgroud)