title: Composer.json vendor folder on Heroku
body: <p>I am migrating from shared web hosting to Heroku and can't figure out how to user Composer properly.</p>
  
  <p>I have my app pointing to <code>public_html</code> folder, with the <code>composer.json</code> file in the root folder above this. This would generate a <code>vendor</code> folder in the root folder, which (for reasons I don't understand) I was unable to access when I tried including the autoload.php file in my code (e.g. <code>require_once('../vendor/autoload.php')</code>).</p>
  
  <p>My solution to this was to move <code>composer.json</code> into <code>public_html</code>, but that caused no end of problems with Heroku not finding it, so I moved it back. I then changed the vendor directory in <code>composer.json</code> to point to <code>public_html/vendor</code>. </p>
  
  <p>This had the desired effect, except now my app won't run because it can't find PHP, presumably something to do with the new location of vendor.</p>
  
  <p>Is there a way to either:</p>
  
  <ol>
  <li>Configure composer.json to have Heroku put everything except PHP in <code>public_html/vendor</code>, and put PHP into a root <code>vendor</code> directory, or</li>
  <li>Access files above <code>public_html</code> from within my code to allow me to include <code>autoload.php</code>?</li>
  </ol>