totally second aiiane,
I personally think PHP is indeed a mess as a tool, it is sort of a bunch of unorganized stuff that works. I've used it myself though, but found out other stuff like rails for example are simpler and more powerful.
so when it comes to productivity and related stuff, you might question yourself about what tools to choose, which are better and which ones suck.