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
folder
I 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
To install Composer locally, run the installer in your project directory. See the Download page for instructions. The installer will check a few PHP settings and then download composer.phar to your working directory. This file is the Composer binary.
php composer.phar update. This will resolve all dependencies of the project and write the exact versions into composer. lock . If you only want to update a few packages and not all, you can list them as such: php composer.phar update vendor/package vendor/package2.
Use this :
php -r "readfile('https://getcomposer.org/installer');" | php
This will install composer to the current directory so that you can use php composer.phar
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With