How to use composer correctly?
I installed according to the official instructions, checked composer -v everything works. After that, he moved to the project folder, opened the console from there, and installed conposer.json, using the composer init command.
But when I try to execute this command: php ~/composer.phar require cboden/ratchet , an error occurs: Could not open input file: ~/composer.phar
It says that it does not find composer.phar , which lies where we installed the composer. I certainly understand what can be done like this:
php e:\Developers\WebDeveloper\OpenServer-WebProg\modules\php\PHP-5.6\composer.phar require cboden/ratchet But still, why doesnβt it work how to make it work ?:
php ~/composer.phar require cboden/ratchet