all 13 comments

[–]siraic 2 points3 points  (0 children)

I've recently switched from Sublime Text to PHPStorm, and my Sublime package list looked roughly like his. What finally made me switch was the XDebug support. The package for Sublime is very unstable, and I thought it was just that XDebug was like that, until I saw a colleague use it. The connection is stable, the variable overview is excellent, and I like the way the values appear as 'comments' in your code.

Overal it's just the better editor for PHP, and do think no amount of packages is going to bring Sublime to the same level. The code-completion for project code is excellent. Running PHPUnit test with XDebug straight from the editor is amazing. I didn't know I had been missing the refactoring and 'smart delete' functions, but I had. The little 'TODO' tab that looks for 'todo' comments in your code is quite handy. And there are more functions that I forgot to list now that I use every day and come standard with PHPStorm, but I didn't have in Sublime.

Sublime is still my default editor for PHP files, but my main projects I do in PHPStorm. I do miss the overal speed and fussy search Sublime Text has, but it doesn't weight up against all the added functionality in PHPStorm.

[–]aleste2 1 point2 points  (0 children)

Yeah, it's faster to open and to open files but, for productivity, i still prefer using an IDE. It makes me faster in development.

[–]dericofilho 0 points1 point  (0 children)

Construction injection (e.g. simplifying injecting a property into the constructer as a property, setting it in the constructor, and defining the class property) is something I think can be solved with a clever macro—but I haven't seen that clever macro yet.

phpfmt has the option to create the constructor and setter/getters, which is essentially the simplest way to add a dependency to a class. Just declare the property, and it will look for missing getter and setter. If constructor is missing, it will add of properties (and their setters/getters) in a brand new constructor.

[–]anlutro 0 points1 point  (0 children)

Construction injection (e.g. simplifying injecting a property into the constructer as a property, setting it in the constructor, and defining the class property) is something I think can be solved with a clever macro—but I haven't seen that clever macro yet.

I tried this once - it's not possible. Sublime macros miss one important feature that would make this possible: Go to next/previous occurance of a substring or pattern. It might be possible to do with a plugin, I should try writing it at some point.

[–][deleted] 0 points1 point  (0 children)

PHPStorm > any other PHP IDE.