doctrine orm — Какая версия doctrine2 для PHP 5.6.30

Мне нужно развернуть Doctrine на php версии 5.6.30. Это возможно? Если так, как я должен установить зависимости в 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.

1

Решение

Попробуйте удалить любые зависимости Doctrine от composer.json, удалять composer.lock и вызвать композитор через CLI:

composer require doctrine/orm

Композитор сам выберет лучшие зависимости, соответствующие вашей версии PHP.

1

Другие решения

Удалите composer.lock и запустите справку по установке composer.

1

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector