<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 22 May 2013 23:43:46 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Henri Bergius' Blog: Using Composer To Manage Dependencies In Heroku PHP Apps]]></title>
      <guid>http://www.phpdeveloper.org/news/17921</guid>
      <link>http://www.phpdeveloper.org/news/17921</link>
      <description><![CDATA[<p>
<i>Henri Bergius</i> has a new post to his blog showing you how to use the popular <a href="http://getcomposer.org">Composer</a> package management tool to <a href="http://bergie.iki.fi/blog/using_composer_to_manage_dependencies_in_heroku_php_apps/">manage dependencies in Heroku applications</a>.
</p>
<blockquote>
<p>
While Heroku <a href="http://www.flourish.org/blog/?p=687">got its start</a> from hosting Ruby on Rails applications, it nowadays supports <a href="https://devcenter.heroku.com/articles/cedar">many different environments</a> in the Cedar stack. Node.js is what many use, but they also <a href="http://www.gravitywell.co.uk/blog/post/deploying-php-apps-to-heroku">do support PHP</a>. Dependency management is easy for Node.js applications as Heroku recognizes your package.json files and <a href="https://devcenter.heroku.com/articles/nodejs#declare_dependencies_with_npm">automatically installs</a> the libraries needed via NPM.
</p>
<p>
Until now PHP developers haven't had this convenience, but as <a href="http://packagist.org/">Composer</a> is emerging as the <a href="http://bergie.iki.fi/blog/composer_solves_the_php_code-sharing_problem/">default PHP package manager</a>, I've now <a href="https://github.com/heroku/heroku-buildpack-php/pull/10">added support</a> for it. Before the <a href="https://github.com/heroku/heroku-buildpack-php/pull/10">pull request</a> gets accepted, Composer dependency handling can already be used by specifying my custom PHP buildpack when creating Heroku apps.
</p>
</blockquote>
<p>
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 <a href="http://urlizer-service.herokuapp.com/">here</a> (a simple URL encoding form).
</p>]]></description>
      <pubDate>Tue, 08 May 2012 08:38:41 -0500</pubDate>
    </item>
  </channel>
</rss>
