From the beginning I tried on Denver through the composer, it failed to start init produces this error 
I understand that the PHP version does not match the requirement, since I already had other projects on Denver, I did not update it and installed winginx there in the package is PHP 5.3. * And PHP 5.4. *. Created a project yii2.loc, chose the version of PHP 5.4, then copied Yii2 from Denver to winginx and try to run, again the error
As I understand it, this comes out because winginx defaults to PHP 5.3 because when you open localhost / phpinfo.php, PHP 5.3 shows it. Tried to make PHP 5.4 by default did not work. How to solve a problem?
composer installsame - etki