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
- Clone repo from fortrabbit
- Create index.php, composer.json and .htaccess
- Commit with trigger commment ([trigger:commit])
- Push to deploy
- Done
Further Readings
- Slim Framework by Josh Lockhart
- PHP Storm IDE
- Music: Morg - ÖverKill
- Install slim on fortrabbit < more infos on our support pages
- Composer hook on fortrabbit < more infos on our support pages