Composer PHP无法安装照明/数据库



我在尝试运行时遇到以下错误:作曲家需要照明/数据库

我是作曲家的新手,若有任何帮助,我将不胜感激。提前感谢

Problem 1
- php-xpdf/php-xpdf is locked to version 0.2.3 and an update of this package was not requested.
- illuminate/database[v9.25.0, ..., v9.25.1] require symfony/console ^6.0 -> satisfiable by symfony/console[v6.0.0, ..., v6.1.3].
- symfony/console[v6.0.0, ..., v6.1.3] conflict with symfony/process <5.4.
- alchemy/binary-driver 1.6.0 requires symfony/process ^2.0|^3.0 -> satisfiable by symfony/process[v3.4.47].   
- php-xpdf/php-xpdf 0.2.3 requires alchemy/binary-driver ~1.5 -> satisfiable by alchemy/binary-driver[1.6.0].  
- Root composer.json requires illuminate/database ^9.25 -> satisfiable by illuminate/database[v9.25.0, v9.25.1].
You can also try re-running composer require with an explicit version constraint, e.g. "composer require illuminate/database:*" to figure out if any version is installable, or "composer require illuminate/database:^2.1" if you know which you need.

您使用的是相当旧的php-xpdf/php-xpdf版本(v0.2.3,于2016年7月发布!(,它在v2或v3中需要一个Symfony组件。即使是该软件包的最新版本(2018年发布,因此也非常过时!(也使用了另一个需要Symfony v2或v3的软件包。

检查是否更换了维护较好的php-xpdf/php-xpdf

如@Nico Haase所述,唯一的解决方案是用允许升级所需symfony组件的东西替换php-xpdf/php-xpdf。我使用的替代品是:spatie/pdf-to-text

最新更新