title: How to add Composer autoload classmap at runtime
body: <p>Adding directories for Composer autoloading in this way (composer.json)</p>
  
  <pre><code>"autoload": {
      "classmap": [
          "/var/www/lib",
          "/var/www/source"
      ]
  }
  </code></pre>
  
  <p>but it is always annoying to run composer dumpautoload each time when creatinng new classes in my own project directories.</p>
  
  <p>How can I add my dirs at runtime?</p>
  
  <p>P.S. I know what is PSR-4. But when you have more then 100 classes and using hundreds of templates for HTML rendering - this is not solution. I will have to write a lot of "use foo\bar" in templates. That is abnormal.</p>