title: PHP Solarium - Composer Autoload giving class not found errors
body: <p>I'm trying to get Solarium running on Centos 6.5 with an rpm install of PHP (5.3.3) and Apache HTTPD.</p>
  
  <p>I have followed the instructions on the website, creating a  folder /var/www/php (which is in the include path in php.ini) and downloading composer.  Then I've entered the following into composer.json:</p>
  
  <pre><code>{
        "require": {
            "solarium/solarium": "3.*"
        }
  }
  </code></pre>
  
  <p>and run "php composer.phar install".</p>
  
  <p>I am now trying to run the examples in the Solarium examples folder (specifically the 1.1 Solr Ping example).  To do this I have amended init.php to include the line:</p>
  
  <p>require('vendor/autoload.php');</p>
  
  <p>I have confirmed that vendor/autoload.php is being run by adding a print statement to it.</p>
  
  <p>However, when I run the example I get:</p>
  
  <pre><code>Fatal error: Class 'Solarium_Version' not found in /var/www/html/test/1.1-check-solarium-and-ping.php on line 7
  </code></pre>
  
  <p>or if I comment out line 7:</p>
  
  <pre><code>Fatal error: Class 'Solarium_Client' not found in /var/www/html/test/1.1-check-solarium-and-ping.php on line 10
  </code></pre>
  
  <p>So it seems that the Solarium files are not being loaded as intended.</p>
  
  <p>Not sure if this is a Solarium or Composer problem (I suspect the latter).  Can any one suggest a way to debug this?</p>
  
  <p>Issuing the command "php composer.phar dump-autoload"  only generates the message:</p>
  
  <pre><code>Generating autoload files
  </code></pre>
  
  <p>Is that correct (I assume not based on the description of the command)?</p>
  
  <p>Running:</p>
  
  <pre><code>php composer.phar diagnose
  </code></pre>
  
  <p>Gives: 
      Checking composer.json: FAIL
      name : is missing and it is required
      description : is missing and it is required
      No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.
      Checking platform settings: FAIL</p>
  
  <pre><code>Your PHP (5.3.3) is quite old, upgrading to PHP 5.3.4 or higher is recommended.
  Composer works with 5.3.2+ for most people, but there might be edge case issues.
  Checking git settings: OK
  Checking http connectivity: OK
  Checking disk free space: OK
  Checking composer version: FAIL
  Your are not running the latest version
  </code></pre>
  
  <p>None of which look fatal.  Is that correct?</p>
  
  <p>Many thanks</p>
  
  <p>Paul</p>
  
  <p>UPDATE:</p>
  
  <p>Some more info.  Adding some print statements to vendor/composer/autoload_real.php gives:</p>
  
  <p>($map created by autoload_namespaces.php)</p>
  
  <pre><code>Symfony\Component\EventDispatcher\ - 
  Array ( [0] =&gt; /var/www/php/vendor/symfony/event-dispatcher ) 
  Solarium\ - 
  Array ( [0] =&gt; /var/www/php/vendor/solarium/solarium/library ) 
  </code></pre>
  
  <p>($classMap created by autoload_classmap.php)</p>
  
  <pre><code>classMap - 
  Array ( )
  </code></pre>
  
  <p>The empty array for classmap seems odd.  Is that correct?</p>
  
  <p>Thanks</p>
  
  <p>P</p>