0

I am a beginner in programming trying to implement Ratchet.

This is my current file structure

D:\Xampp
composer.phar
htdocs
      Ratchet
             composer.json
             bin
                Chat.php
             src
                Chat-Server.php

And I ran the command

php composer.phar install --dev

The following error message appears

Composer could not find a composer.json file in D:\xampp
To initialize a project, please create a composer.json file as described in the
http://getcomposer.org/ "Getting Started" section

I tried using

 php composer.phar --working-dir=htdocs/Ratchet update

But it still doesn't work. The tutorial on Ratchet is not very clear either, can someone guide me on what I should do next?

4

1 回答 1

1

这种重复了这个问题: Updating the composer.phar on Symfony2

虽然回答它:

您需要在您所在的目录中运行 composer.phar composer.json,因此正确的执行路径将是带有以下命令的 Ratchet 目录:

../../composer.phar install --dev

于 2014-06-26T11:07:15.197 回答