我需要在一个旧的symfony 2.3应用程序中安装一个新的依赖项。但似乎以前安装的软件包已经过时了,我得到了下一个错误:"您的要求无法解析为一组可安装的软件包。"
这是我目前的依赖项:
"php": ">=5.3.
"symfony/symfony": "2.3.*",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.2.*",
"twig/extensions": "1.0.*",
"symfony/assetic-bundle": "2.3.*",
"symfony/swiftmailer-bundle": "2.3.*",
"symfony/monolog-bundle": "2.3.*",
"sensio/distribution-bundle": "2.3.*",
"sensio/framework-extra-bundle": "2.3.*",
"sensio/generator-bundle": "2.3.*",
"incenteev/composer-parameter-handler": "~2.0",
"doctrine/doctrine-fixtures-bundle": "dev-master",
"doctrine/data-fixtures": "dev-master",
"knplabs/knp-menu":"dev-master",
"knplabs/knp-menu-bundle":"dev-master",
"liuggio/excelbundle": ">=1.0.4",
"tecnick.com/tcpdf": "6.0.023"
我需要添加:&#34; phpoffice / phpword&#34;:&#34; v0.13。*&#34;需要zend框架的软件包。
有没有办法安装我的新依赖项而不影响已安装的软件包?
答案 0 :(得分:0)
如果您运行composer why-not "phpoffice/phpword"
,您可以更清楚地了解问题所在,并通过将某些软件包更新为可以协同工作的新版本来开始解决此问题。