title: Composer, Laravel and local packages
body: <p>My issue is I have a package which isn't a repository and I am trying to get it to play nice with Laravel and composer. It is still located under the vendor folder, the only issue is that if I simply set:</p>
  
  <pre><code>"psr-0": {
          "Test\\Test": "vendor/test/test/src/"
      }
  </code></pre>
  
  <p>This will load the service provider but none of the controllers etc will autoload. What is the correct way to implement a package with larval that does not have it's own repository. Or does this go against the nature of packages and this should simply be structured under the applications controllers.</p>
  
  <p>The package was created by me using workbench but I found i did not really need this as a separate repository but it would still be good to keep it as a package. Therefore the structure is exactly the same as a regular package:</p>
  
  <pre><code>vendor
      testvendor
          testpackage
              public
              src
              tests
              .gitignore
              composer.json
              phpunit.xml
  </code></pre>
  
  <p>UPDATE:</p>
  
  <p>As a solution for the time being I am using:</p>
  
  <pre><code>"autoload": {
      "classmap": [
          "app/commands",
          "app/controllers",
          "app/models",
          "app/database/migrations",
          "app/database/seeds",
          "app/tests/TestCase.php",
          "vendor/package"
      ]
  },
  </code></pre>
  
  <p>As an entry in the class map. Looking forward I will probably refactor this into the app folder or create a repository for this package.</p>