onmotion / yii2-survey

Adds survey functionality to your Yii2 application
14 stars 20 forks source link

issue with php version when install extension #4

Open ADovgiy opened 5 years ago

ADovgiy commented 5 years ago

When trying to install extension with composer composer require onmotion/yii2-survey getting error

Using version ^0.1.0 for onmotion/yii2-survey ./composer.json has been updated The "extra.asset-installer-paths" option is deprecated, use the "config.fxp-asse t.installer-paths" option 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 failed, reverting ./composer.json to its original content.

CyberPunkCodes commented 5 years ago

5.6 is dead and no longer supported by PHP themselves.

You should be on 7.3 but 7.2 is acceptable. Even 7.1 is only getting security updates now. Reference: PHP.net Supported Versions

Aside from that, it isn't his repo giving the error, it is myclabs/deep-copy, and they require 7.1.

Solution: Upgrade your PHP version. This isn't the only repo/library your going to be having issues with if you don't.