title: PHP PhantomJS not loading in class through Composer
body: <p>I've followed the <a href="http://jonnnnyw.github.io/php-phantomjs/installation.html" rel="noreferrer">installation guide</a> for <strong>PHP PhantomJS</strong>. When running a test script using PHP PhantomJS, I'm getting the error: </p>
  
  <p><code>PHP Fatal error:  Class 'JonnyW\PhantomJs\Client' not found in ...</code></p>
  
  <p>I haven't used Composer before, so I maybe overlooking something. I'm running this from MAMP, so there may be some specifics to do with that that are not mentioned in the documentation. If I open the test script in a browser I get a blank screen. It's only from running the php from Terminal that I get the <code>Fatal error</code>.</p>
  
  <p>The line the script fails on is:</p>
  
  <pre><code>$client = Client::getInstance();
  </code></pre>
  
  <p>I therefore presume that it is not loading properly from Composer. I can verify that in <code>/bin</code> are both <code>phantomjs</code> and <code>phantomloader</code>.</p>
  
  <p>What steps should I take to get the PHP PhantomJS script loaded correctly?</p>
  
  <p>--update--</p>
  
  <p><strong>test.php</strong> (taken directly from PHP PhantomJS example)</p>
  
  <pre><code>use JonnyW\PhantomJs\Client;
  
  $client = Client::getInstance();
  
  $request  = $client-&gt;getMessageFactory()-&gt;createRequest();
  $response = $client-&gt;getMessageFactory()-&gt;createResponse();
  
  $request-&gt;setMethod('GET');
  $request-&gt;setUrl('http://google.com');
  
  $client-&gt;send($request, $response);
  
  if($response-&gt;getStatus() === 200) {
      echo $response-&gt;getContent();
  }
  </code></pre>