Take care. This article is likely outdated.

Slim PHP on fortrabbit

This is the third video and last (for the time being) of our screen-cast series where we are showing off our worst practices of PHP development & deployment on our hosting platform.

Learn here about one way (out of many) to install the PHP micro framework Slim on the fabulous fortrabbit PHP hosting platform. See the handy PHP Storm IDE, gorgeous Git version control and the funky dependency manager PHP Composer in action. The magic, you can only do on fortrabbit, happens in minute 1:18 where we use the special keyword "[trigger:composer]" in the commit message to run the Composer installer on the remote server. This video was filmed in full color in Linux cinemascope. Please enlarge or use fullscreen mode and switch to HD to get the details. This video was written and produced by our chief engineer Ulrich Kautz.

Step by Step

  1. Clone repo from fortrabbit
  2. Create index.php, composer.json and .htaccess
  3. Commit with trigger commment ([trigger:commit])
  4. Push to deploy
  5. Done

Further Readings

Share & discuss this: