PHP Run – a package for Sublime Text 2

I switched from the my old friend TextMate a couple of days ago. And missed CMD+SHIFT+R. In TextMate, this command would run the current PHP file and output the result. Great when you just want to see if your hotfix compiles, or if you want to beautify a json feed really quickly <?php print_r(json_decode(file_get_contents($feed)));

Not rocket science in any way, just a few lines of Python. But works for me and possibly you too. Soon you’ll hopefully be able to install it via the Sublime Text 2 Package Manager, but meanwhile you can grab it from GitHub.