php-getting-started

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.

Running Locally

Make sure you have PHP, Apache and Composer installed. Also, install the Heroku Toolbelt.

$ git clone git@github.com: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.

Deploying to Heroku

$ heroku create
$ git push heroku master
$ heroku open

Documentation

For more information about using PHP on Heroku, see these Dev Center articles: