We are happy to publish a handy Vagrant plugin which makes debugging and testing easy if you use PhpStorm and Vagrant box. The main idea is to add concept of debugging over SSH tunnel. Currently only HTTP concept is supported by default so this is a workaround for a missing feature in PhpStorm (see here).

What it does?

vagrant-phpstorm-tunnel installs a proxy php binary which can be configured as a php-interpreter in PhpStorm. It will forward all php calls to php in the Vagrant VM.

Why SSH?

  • running non WEB based application in the box
  • executing php code in the box
  • unit testing
  • debugging

Installation

vagrant plugin install vagrant-phpstorm-tunnel

More information on Github