There is a great plugin for Sublime Text 2 called SublimePhpTidy. It hasn’t been updated to the beta version 3 of Sublime Text as of this post.
The easy fix is to clone the above github project into your packages folder. On mac it’s here ~/Library/Application Support/Sublime Text 3/Packages
. I’m not sure where on Windows, leave a comment if you do.
Then change the folders name.
$ cd "~/Library/Application Support/Sublime Text 3/Packages"
$ git clone https://github.com/welovewordpress/SublimePhpTidy.git
$ mv SublimePhpTidy/ PhpTidy
After the above I restarted ST3, which you may or may not need to do, and it worked a charm.