# composer require phpoffice/phpspreadsheet

./composer.json has been updated
Running composer update phpoffice/phpspreadsheet
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - codeception/module-yii2 is locked to version 1.1.5 and an update of this package was not requested.
    - codeception/module-yii2 1.1.5 requires php >=5.6.0 <=8.1 | ~8.1.0 -> your php version (8.2.27) does not satisfy that requirement.

You can also try re-running composer require with an explicit version constraint, e.g. "composer require phpoffice/phpspreadsheet:*" to figure out if any version is installable, or "composer require phpoffice/phpspreadsheet:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

跳过版本
composer require phpoffice/phpspreadsheet --ignore-platform-reqs

指定版本

composer require phpoffice/phpspreadsheet:^1.28 --with-all-dependencies

解锁验证

修改 composer.json 中的 PHP 版本要求

Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐