title: Composer autoloading vendor classes
body: <p>I have 2 packages on Packagist. </p>
  
  <p><a href="https://packagist.org/packages/erayalakese/envato-market-api" rel="nofollow">https://packagist.org/packages/erayalakese/envato-market-api</a> (A)
  <a href="https://packagist.org/packages/erayalakese/envato-update-checker" rel="nofollow">https://packagist.org/packages/erayalakese/envato-update-checker</a> (B)</p>
  
  <p>B requires A. </p>
  
  <p>Now I'm using B package on my projects. But I'm getting <strong>Class 'erayalakese\Envato_Update_Checker' (package B) not found</strong> error.</p>
  
  <p>This is my composer.json file</p>
  
  <pre><code>{
      "name": "",
      "description": "",
      "require": {
          "erayalakese/envato-update-checker": "^1.3"
      },
      "authors": ...
  }
  </code></pre>
  
  <p>And my project file:</p>
  
  <pre><code>&lt;?php
  require_once(__DIR__.'/vendor/autoload.php');
  new erayalakese\Envato_Update_Checker(...);
  </code></pre>
  
  <p>When I add this to my composer.json as temporary solution, it's working :</p>
  
  <pre><code>"autoload": {
      "classmap": ["vendor/"]
  }
  </code></pre>
  
  <p>But I'm not sure I really need to add <strong>vendor</strong> folder to <strong>autoload</strong> . I was expecting it will autoload my vendors automatically.</p>
  
  <p>Can you tell me what's I'm missing? </p>