sukran
(Skeeran)
1
Hi to all,
i wanted test yii2 for my new project.
Download my the basic Template and updated composer.json for a extension installation and when i try to update composer like this way :
composer update
i get this error:
Parse error: parse error in /Applications/MAMP/htdocs/basic/vendor/yiisoft/yii2-composer/yii/composer/Installer.php on line 82
i am using php 5.5.10
can someone help me please.
Thanks
sukran
(Skeeran)
3
PHP 5.3.28 with Suhosin-Patch (cli) (built: Jan 23 2014 20:55:45)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
now confused because i am using mamp and thats running php 5.5.10
Php CLI installed on your system can differ from mamp’s version.
Either upgrade, or use mamp’s docs to discover how to use its version for cli.
Probably something like this should help:
alias phpmamp='/Applications/MAMP/bin/php5.X.X/bin/php' // use your actual path here
phpmamp composer.phar update
sukran
(Skeeran)
6
export PATH=/Applications/MAMP/bin/php/php5.5.10/bin:$PATH
this solved for me that problem.
thank you Orey