title: How to use Composer to autoload classes from outside the vendor?
body: <p>I use <code>psr-4</code> autoloader from composer:</p>
  
  <pre><code>"autoload": {
      "psr-4": {
          "DG\\Munchkin\\": "src/DG/Munch/"
      }
  }
  </code></pre>
  
  <p>This loads classes from <code>/var/www/html/xxx/vendor/yyy/src/DG/Munch</code></p>
  
  <p>But how can I load classes from <code>/var/www/html/xxx/</code>?</p>
  
  <p>I wrote my own autoloader, but when I require <code>vendor/autoload.php</code> (composer autoload) and my autoloader, it won't work until I create instance of a class in my own autoloader.</p>