我需要在一个旧的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"
我需要添加:" phpoffice/phpword":" v0.13。*"需要Zend Framework的软件包。
有任何方法可以安装我的新依赖项而不会影响已经安装的软件包?
如果运行composer why-not "phpoffice/phpword"
,您可能会获得有关问题的额外清晰度,并通过将某些软件包更新为可以一起使用的较新版本来开始围绕它来工作。