我将在我的 php 项目中为电子PHP表格安装一个Composer,但出现php version错误。
我尝试安装了很多次,但仍然是同样的错误。
这个 composer.json
{
"name": "phpoffice/phpspreadsheet",
"description": "PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine",
"keywords": ["PHP", "OpenXML", "Excel", "xlsx", "xls", "ods", "gnumeric", "spreadsheet"],
"homepage": "https://github.com/PHPOffice/PhpSpreadsheet",
"type": "library",
"license": "LGPL-2.1-or-later",
"authors": [
{
"name": "Maarten Balliauw",
"homepage": "https://blog.maartenballiauw.be"
},
{
"name": "Mark Baker",
"homepage": "https://markbakeruk.net"
},
{
"name": "Franck Lefevre",
"homepage": "https://rootslabs.net"
},
{
"name": "Erik Tilt"
},
{
"name": "Adrien Crivelli"
}
],
"scripts": {
"check": [
"php-cs-fixer fix --ansi --dry-run --diff",
"phpcs --report-width=200 samples/ src/ tests/ --ignore=samples/Header.php --standard=PSR2 -n",
"phpunit --color=always"
],
"fix": [
"php-cs-fixer fix --ansi"
],
},
这些是错误显示
- Installation request for mpdf/mpdf v7.1.6 -> satisfiable by mpdf/mpdf[v7.1.6].
- mpdf/mpdf v7.1.6 requires php ^5.6 || ~7.0.0 || ~7.1.0 || ~7.2.0 -> your PHP version (7.3.6) does not satisfy that requirement.
- Installation request for mpdf/mpdf v7.1.6 -> satisfiable by mpdf/mpdf[v7.1.6].
- mpdf/mpdf v7.1.6 requires php ^5.6 || ~7.0.0 || ~7.1.0 || ~7.2.0 -> your PHP version (7.3.6) does not satisfy that requirement.
请帮忙。
30秒到达战场