News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Henri Bergius' Blog:
Using Composer To Manage Dependencies In Heroku PHP Apps
May 08, 2012 @ 08:38:41

Henri Bergius has a new post to his blog showing you how to use the popular Composer package management tool to manage dependencies in Heroku applications.

While Heroku got its start from hosting Ruby on Rails applications, it nowadays supports many different environments in the Cedar stack. Node.js is what many use, but they also do support PHP. Dependency management is easy for Node.js applications as Heroku recognizes your package.json files and automatically installs the libraries needed via NPM.

Until now PHP developers haven't had this convenience, but as Composer is emerging as the default PHP package manager, I've now added support for it. Before the pull request gets accepted, Composer dependency handling can already be used by specifying my custom PHP buildpack when creating Heroku apps.

He shows you how to get it up and running with a sample application - creating the new git archive, creating the Heroku app with the custom backapack (and a "composer.json" file), setting up the main "index.php" file and push it all to Heroku. You can view his sample application here (a simple URL encoding form).

0 comments voice your opinion now!
heroku application composer manage dependency paas backpack


blog comments powered by Disqus

Similar Posts

Matthew Weir O'Phinney's Blog: Start Writing Embeddable Applications

Paul Jones: What Application Layer Does A DI Container Belong In?

iBuildings Blog: Verifying out software with OWASP ASVS

SpinDrop.us: Using Zend Search Lucene in a symfony app

Sam Hennessy's Blog: A Dependency Injection for PHP Manifesto - Part 1 (What I Want)


Community Events











Don't see your event here?
Let us know!


application overview opinion unittest symfony2 introduction package framework language security facebook composer install performance release hack component code hhvm podcast

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework