I am trying to install zendframework using composer tool in wamp server.
The following steps are done towards installation
I downloaded the Composer-Setup.exe file from composer page and got successfully installed.
I downloaded the zendframework and extracted inside the
c:\wamp\www\zend
folderI executed the command for self update
php composer.phar self-update
This line generates the error message: could not open file composer.phar
how to resolve this error
If I try the
composer.phar self-update
First try this: dont use the
php composer.phar [parameters]
simply usecomposer [parameters]
if this doesn't work for you than try the rest. Hope it helps.I was trying to install YII 2.0
I got the same error:
Could not open input file: composer.phar
Then i gave the full path of .phar like this:
and it worked.
dont use
php composer.phar self-update
First go to Your project directory
simply use
composer.phar self-update
This works for me
Question already answered by the OP, but I am posting this answer for anyone having similar problem, retting to
error message.
Simply go to your project directory/folder and do a
Assuming this is where you have your web application:
change directory to it, and then run
composer update
.