Hello. Install the Ratchet library using composer. I downloaded the composer, created a json file with the necessary code:

{ "autoload": { "psr-4": { "MyApp\\": "src" } }, "require": { "cboden/ratchet": "^0.4" } } 

I register in the console

D: \ OpenServer \ domains \ m> php composer.phar install

but php is not an internal or external command. Tell me how to fix it?

  • Specify the full path to php, for example D: \ OpenServer \ domains \ m> c: \ php \ php.exe composer.phar install - Anton Skorodumov
  • OpenServer already has an environment and moreover, there is already a composer .... just write composer.phar install and it seems it’s even just a composer bla bla bla ......... you just need to enter your project folder first - Alex Shimansky

0