title: My composer package's namespace doesn't show in the autoload_psr4 file
body: <p>I'm creating my first composer package. I'm testing it by pulling it into a vanilla Laravel project. </p>
  
  <p>The issue I'm having is that when I require my composer package in the main Laravel composer.json file and then try to update the autoload. </p>
  
  <h2>My package's composer.json:</h2>
  
  <pre><code>{
      "name": "cschmitz/l5-simplefm",
      "description": "A Laravel 5 wrapper for Soliant Consulting's SimpleFM package.",
      "require": {
          "soliantconsulting/simplefm": "3.0.*"
      },
      "license": "MIT",
      "authors": [
          {
              "name": "cschmitz",
              "email": "schmitz.chris@gmail.com"
          }
      ],
      "minimum-stability": "dev",
      "autoload": {
          "psr-4": {
              "L5SimpleFM\\": "src/"
          }
      }
  }
  </code></pre>
  
  <h2>My package's folder structure in the Laravel project's <code>vendor</code> folder:</h2>
  
  <p><a href="https://i.stack.imgur.com/6jxpI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6jxpI.png" alt="vendor folder structure"></a></p>
  
  <h2>My Laravel project's composer.json:</h2>
  
  <pre><code>{
      "name": "laravel/laravel",
      "description": "The Laravel Framework.",
      "keywords": ["framework", "laravel"],
      "license": "MIT",
      "type": "project",
      "require": {
          "php": "&gt;=5.5.9",
          "laravel/framework": "5.1.*",
          "cschmitz/l5-simplefm": "dev" // Requiring my package here
      },
      ...
  </code></pre>
  
  <p>After this, I performed a <code>composer dump-autoload</code>. I don't get any errors from composer, but when I check my <code>vendor/composer/autoload_psr4.php</code> file, my namespace isn't listed in the array:</p>
  
  <pre><code>    $vendorDir = dirname(dirname(__FILE__));
      $baseDir = dirname($vendorDir);
  
      return array(
  
          ...
          'App\\' =&gt; array($baseDir . '/app'),
  
  
          // I expected to see `'L5SimpleFM\\' =&gt; array($vendorDir . '/cschmitz/L5SimpleFM/src')` as the last key of this array, but nothing shows past the App key
      );
  </code></pre>
  
  <p>I looked around online and on stackoverflow, but the various answers and suggestions I found didn't resolve the issue. </p>
  
  <p>Can anyone see what I'm missing?</p>
  
  <h1>Update</h1>
  
  <p>Per Alexandru Guzinschi's answer, I tried telling my Laravel project that there was a local composer repository to inspect by adding the following block into my Laravel project's composer.json file:</p>
  
  <pre><code>"repositories":[
      {
          "type": "vcs",
          "url": "../cschmitz/L5SimpleFM"
      }
  ],    
  </code></pre>
  
  <p>I then moved the package folder starting at the <code>cschmitz</code> directory out to the same level of my laravel project. The file structure looks like this now:</p>
  
  <pre><code>LaravelProjectFolder/
      composer.json
  cschmitz/
      L5SimpleFM/
          composer.json
  </code></pre>
  
  <p>Initially I ran into the error "No driver found to handle VCS repository vendor/cschmitz". After reading a bit I found that to be able to use this kind of local repository, the repo itself needs to be under version control (i.e. git, svn, etc). Makes sense. I hadn't put it under version control yet because this was just a test project used to try to develop the package. </p>
  
  <p>I created a git repository at the root of my Laravel project and ran <code>composer update</code>. Now I'm getting the error:</p>
  
  <blockquote>
    <p>[Composer\Repository\InvalidRepositoryException]
      No valid composer.json was found in any branch or tag of ../cschmitz/L5SimpleFM, could not load a package from it.</p>
  </blockquote>
  
  <p>This is confusing because I can <code>ls ../cschmitz/L5SimpleFM/composer.json</code> and see the file. I can also run <code>git ls-tree -r master --name-only</code> and see the composer.json file in the local repository version control:</p>
  
  <p><a href="https://i.stack.imgur.com/AsiwW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AsiwW.png" alt="composer.json in local repository&#39;s git repo"></a></p>
  
  <p>Is there something that would prevent my Laravel project from seeing the local repository's composer.json file?</p>