title: php composer with solarium library
body: <p>How am I supposed to use the Solarium Library <a href="https://packagist.org/packages/solarium/solarium" rel="nofollow">https://packagist.org/packages/solarium/solarium</a></p>
  
  <p>With PHP Composer? <a href="http://getcomposer.org/" rel="nofollow">http://getcomposer.org/</a></p>
  
  <ul>
  <li>I ran</li>
  </ul>
  
  <p><code>composer require solarium/solarium</code></p>
  
  <ul>
  <li>It installed properly then I added to my php file</li>
  </ul>
  
  <p><code>include_once './vendor/autoload.php';</code></p>
  
  <ul>
  <li>Then how do I initialize the Autoloader? Before composer I would perform the following require and all the functions would then be available.</li>
  </ul>
  
  <p><code>require_once(dirname(__FILE__) . '/../Solarium/Autoloader.php');</code></p>
  
  <ul>
  <li>I tried the following but it gives me <code>Fatal error: Cannot redeclare class Solarium\Autoloader on Solarium\Autoloader.php on line 53</code> </li>
  </ul>
  
  <p><code>new Solarium\Autoloader();</code></p>