title: Composer, class within my package is not being autoloaded in application using it
body: <p>I'm creating a module which I will include in several projects. However, in a project that uses the module, the autoloader doesn't seem to include the class in the module.</p>
  
  <h2>The module structure (etc) is as follows:</h2>
  
  <p>Directory structure in the git repository:</p>
  
  <pre><code>/
  /composer.json
  /src/
  /src/EbayAPI.php
  </code></pre>
  
  <p><code>composer.json</code>:</p>
  
  <pre><code>{
      "name": "jodes/ebay-api",
      "autoload": {
          "psr-4" : {
              "Jodes\\EbayAPI\\" : "src"
          }
      }
  }
  </code></pre>
  
  <p>EbayAPI.php:</p>
  
  <pre><code>&lt;?php
  namespace Jodes;
  class EbayAPI {}
  </code></pre>
  
  <h2>And the application I'm trying to include it in has the following:</h2>
  
  <p><code>composer.json</code>:    </p>
  
  <pre><code>{
      "require": {
          "behat/behat": "@stable",
          ....other requirements in here...
          "jodes/ebay-api": "dev-master"
          },
      "config": {
          "bin-dir": "bin/"
      },
      "repositories": [
          {
              "type": "vcs",
              "url": "https://Jody@bitbucket.org/Jody/ebay_api.git"
          }
      ]
  }    
  </code></pre>
  
  <p>And the php file that wants to use my package via the autoloader is:</p>
  
  <pre><code>&lt;?php
  
  use Jodes\EbayAPI;
  require_once 'vendor/autoload.php';
  
  class HelloWorld {
      public function __construct(){
          $ebay = new EbayAPI();
      }
  }
  </code></pre>
  
  <h2>The error I get is</h2>
  
  <blockquote>
    <p>Fatal error: Class 'Jodes\EbayAPI' not found</p>
  </blockquote>
  
  <p>What am I doing wrong?
  Thanks</p>