A barebones PHP app that makes use of the Silex web framework, which can easily be deployed to Heroku.
This application supports the Getting Started with PHP on Heroku article - check it out.
Make sure you have PHP, Apache and Composer installed. Also, install the Heroku Toolbelt.
$ git clone [email protected]:heroku/php-getting-started.git # or clone your own fork
$ cd php-getting-started
$ composer update
$ foreman start web
Your app should now be running on localhost:5000.
$ heroku create
$ git push heroku master
$ heroku open
For more information about using PHP on Heroku, see these Dev Center articles: