PHP 5.6.30 的 doctrine2 版本是什么



我需要在 php 版本 5.6.30 上部署 Doctrine。可能吗?如果是这样,我应该如何在 composer.json 中设置依赖项?

Problem 1
    - Installation request for doctrine/annotations v1.5.0 -> satisfiable by doctrine/annotations[v1.5.0].
    - doctrine/annotations v1.5.0 requires php ^7.1 -> your PHP version (5.6.30) does not satisfy that requirement.
  Problem 2
    - Installation request for doctrine/cache v1.7.1 -> satisfiable by doctrine/cache[v1.7.1].
    - doctrine/cache v1.7.1 requires php ~7.1 -> your PHP version (5.6.30) does not satisfy that requirement.
  Problem 3
    - Installation request for doctrine/collections v1.5.0 -> satisfiable by doctrine/collections[v1.5.0].
    - doctrine/collections v1.5.0 requires php ^7.1 -> your PHP version (5.6.30) does not satisfy that requirement.
  Problem 4
    - Installation request for doctrine/common v2.8.1 -> satisfiable by doctrine/common[v2.8.1].
    - doctrine/common v2.8.1 requires php ~7.1 -> your PHP version (5.6.30) does not satisfy that requirement.
  Problem 5
    - Installation request for doctrine/dbal v2.6.2 -> satisfiable by doctrine/dbal[v2.6.2].
    - doctrine/dbal v2.6.2 requires php ^7.1 -> your PHP version (5.6.30) does not satisfy that requirement.
  Problem 6
    - Installation request for doctrine/inflector v1.2.0 -> satisfiable by doctrine/inflector[v1.2.0].
    - doctrine/inflector v1.2.0 requires php ^7.0 -> your PHP version (5.6.30) does not satisfy that requirement.
  Problem 7
    - Installation request for twig/twig v2.4.3 -> satisfiable by twig/twig[v2.4.3].
    - twig/twig v2.4.3 requires php ^7.0 -> your PHP version (5.6.30) does not satisfy that requirement.

尝试从composer.json中删除任何 Doctrine 依赖项,删除composer.lock并通过 CLI 调用作曲家:

composer require doctrine/orm

作曲家本身将选择与您的 PHP 版本匹配的最佳依赖项。

删除 composer.lock 并运行 composer 安装帮助。

相关内容

  • 没有找到相关文章

最新更新