title: How can I deploy static web app on Heroku
body: <p>I followed instructions from an answer of a similar topic(<a href="https://stackoverflow.com/a/17531897/4388482">https://stackoverflow.com/a/17531897/4388482</a>). Well, my app is getting deployed on Heroku but it doesn't work good. I'm getting the following warning </p>
  
  <blockquote>
    <p>Your project only contains an 'index.php', no 'composer.json'.
    Using 'index.php' to declare app type as PHP is deprecated and may lead to unexpected behavior.</p>
  </blockquote>
  
  <p>Do I need to install something maybe?</p>
  
  <hr>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Project structure was initially this:</p>
  
  <p><a href="https://i.stack.imgur.com/nmcU8.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nmcU8.jpg" alt="Project structure was initially this"></a></p>
  
  <p>I did the following:</p>
  
  <ul>
  <li>Installed <strong>PHP 5</strong> and <strong>composer</strong>.</li>
  <li>I renamed <em>package.json</em> to <em>composer.json</em> and removed <em>package-lock.json</em>.</li>
  <li>Typed "composer update" command. I got "nothing to install or update" message.</li>
  <li>Added vendor to gitignore. Pushed changes to heroku.</li>
  </ul>
  
  <p>I got the following warnings</p>
  
  <ol>
  <li><blockquote>
    <p>Your 'composer.lock' is out of date! </p>
  </blockquote></li>
  <li><blockquote>
    <p>Composer vendor dir found in project!</p>
  </blockquote></li>
  </ol>