P
P
Pavel Yurchenko2019-02-13 09:46:30
Composer
Pavel Yurchenko, 2019-02-13 09:46:30

Error while installing yii2 advanced with composer?

Can't install yii2 advanced, gives the following text:
d:\yii\OSPanel\domains\yii>composer create-project --prefer-dist yiisoft/yii2-app-advanced yii-application
Installing yiisoft/yii2-app-advanced (2.0 .16)
- Installing yiisoft/yii2-app-advanced (2.0.16): Loading from cache
Created project in yii-application
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for codeception/verify ~1.0.0 -> satisfiable by codeception/verify[1.0.0].
- codeception/verify 1.0.0 requires php >= 7.0 -> your PHP version (5.5.38) does not satisfy that requirement.
Problem 2
- phpunit/phpunit 6.5.9 requires php ^7.0 -> your PHP version (5.5.38) does not satisfy that requirement.
- phpunit/phpunit 6.5.8 requires php ^7.0 -> your PHP version (5.5.38) does not satisfy that requirement.
- phpunit/phpunit 6.5.7 requires php ^7.0 -> your PHP version (5.5.38) does not satisfy that requirement.
- phpunit/phpunit 6.5.6 requires php ^7.0 -> your PHP version (5.5.38) does not satisfy that requirement.
- phpunit/phpunit 6.5.5 requires php ^7.0 -> your PHP version (5.5.38) does not satisfy that requirement.
- phpunit/phpunit 6.5.14 requires php ^7.0 -> your PHP version (5.5.38) does not satisfy that requirement.
- phpunit/phpunit 6.5.13 requires php ^7.0 -> your PHP version (5.5.38) does not satisfy that requirement.
- phpunit/phpunit 6.5.12 requires php ^7.0 -> your PHP version (5.5.38) does not satisfy that requirement.
- phpunit/phpunit 6.5.11 requires php ^7.0 -> your PHP version (5.5.38) does not satisfy that requirement.
- phpunit/phpunit 6.5.10 requires php ^7.0 -> your PHP version (5.5.38) does not satisfy that requirement.
- Installation request for phpunit/phpunit ~6.5.5 -> satisfiable by phpunit/phpunit[6.5.10, 6.5.11, 6.5.12, 6.5.13, 6.5.14, 6.5.5, 6.5.6, 6.5.7 , 6.5.8, 6.5.9].
at the same time, yii2 basic can be installed without problems.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey S., 2019-02-13
@Flash

What about hosting? Composer with specific PHP version Need to run. Beget example composer-phpX.X
composer
composer-php5.3
composer-php5.4
composer-php5.5
composer-php5.6
composer-php7.0
composer-php7.1
composer-php7.2

R
ruler71, 2019-07-18
@ruler71

What should I do, I have the same error. But can't you solve this by not adjusting the server to the version, but by initially approaching version 5.6 or which one does it need?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question