Sublime Text is the best text editor I have worked with.
In this article I will describe my setup of sublime text 3. I am using Sublime Text 3, it's beta but I never had any problems with it.
Lets get started... Of course after installing sublime, first package I install is Package Control. There are a lot of info about this package and I won't go into details.
Of cource PHP should be installed and available, or you need to write path to php for every package that uses it. Also phpcs (PHP Code Sniffer) should be installed so that auto formatting php files would work.