title: Issues Deploying Github Branch From Heroku
body: <p>I have a PHP application that runs without issues on my local machine, as well as on Heroku. It is connected to a Github repo, from Heroku, and I am struggling with deploying a branch.</p>
  <p>Whenever I click on &quot;Deploy Branch,&quot; I get the error message below.</p>
  <pre><code>-----&gt; App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/php.tgz
         
   !     ERROR: Application not supported by this buildpack!
   !     
   !     The 'heroku/php' buildpack is set on this application, but was
   !     unable to detect a PHP codebase.
   !     
   !     A PHP app on Heroku requires a 'composer.json' at the root of
   !     the directory structure, or an 'index.php' for legacy behavior.
   !     
   !     If you are trying to deploy a PHP application, ensure that one
   !     of these files is present at the top level directory.
   !     
   !     If you are trying to deploy an application written in another
   !     language, you need to change the list of buildpacks set on your
   !     Heroku app using the 'heroku buildpacks' command.
   !     
   !     For more information, refer to the following documentation:
   !     https://devcenter.heroku.com/articles/buildpacks
   !     https://devcenter.heroku.com/articles/php-support#activation
         More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
   !     Push failed
  
  </code></pre>
  <p>I have read the error message and I have both the <code>composer.json</code> and <code>index.php</code> files. Below is the structure of my app:</p>
  <pre><code>my_project:
  - vendor/
  - .gitignore
  - .env
  - composer.json
  - composer.lock
  - index.php
  - Procfile
  </code></pre>
  <p>Is there anything I am missing?</p>