title: Composer React Php
body: <p>I am newbie. Trying to install react php to make a asynchronous server.
  I installed it using composer require react/react. And then included the autoload.php in the code. But it is not able to autoload the required files. I have written this code</p>
  
  <pre><code>`&lt;?php
  
  require_once '../vendor/autoload.php';
  
  $i = 0;
  $app = function ($request, $response) use (&amp;$i) {
      $i++;
      $text = "This is request number $i.n";
      $headers = array('Content-Type' =&gt; 'text/plain');
  
      $response-&gt;writeHead(200, $headers);
      $response-&gt;end($text);
  };
  
  $loop = ReactEventLoopFactory::create();
  $socket = new ReactSocketServer($loop);
  $http = new ReactHttpServer($socket);
  
  $http-&gt;on('request', $app);
  
  $socket-&gt;listen(1337);
  $loop-&gt;run();
  
  ?&gt;
  </code></pre>
  
  <p>`
  This is my composer json</p>
  
  <pre><code>{
      "require": {
          "react/react": "*"
      }
  }
  </code></pre>
  
  <p>This is my vendor folder structure</p>
  
  <pre><code>-Vendor
     -react
     -evenement
     -psr
     -composer
  </code></pre>