You must install composer.phar in the root directory of your project.
linux, curl -s https://getcomposer.org/installer | php, Windows
, , "composer.json", , . Ratchet, json :
{
"require": {
"cboden/Ratchet": "0.2.*"
}
}
, php composer.phar install.
Ratchet "vendor".
Rathet php :
require __DIR__ . '/vendor/autoload.php';
, !