Finally, I’ve built heroku buildpack for Symfony2. It is based on awesome Nginx+PHP-FPM build pack except that it is bundled with additional php_intl extension for international support which is necessary for Symfony2 and Sonata bundles.

Source is located here. Issues and pull requests are welcome.

Usage is pretty simple, for new application run :

heroku create -s cedar -b git://github.com/sumkincpp/heroku-buildpack-symfony2.git

For existing one change buildpack and configure PATH :

heroku config:add BUILDPACK_URL=git://github.com/sumkincpp/heroku-buildpack-symfony2.git
heroku config:add PATH="/app/vendor/bin:/app/local/bin:/app/vendor/nginx/sbin:/app/vendor/php/bin:/app/vendor/php/sbin:/usr/local/bin:/usr/bin:/bin"

Bundle you symfony site and you are done, don’t forget to take a beer and enjoy the result.