It is possible to use PHP for CLI apps as well but this is a bit of an afterthought:
if (PHP_SAPI == "cli") {
# CLI-code goes here
exit();
}
It is the right tool for a lot of jobs - not for all jobs but what language is?The language at hand is often the best language for the job, just like that phone camera in your pocket is the best camera to snap that shot of whatever event you just happened upon. Sure, it would have been better if you could use a DSLR on a stand, shooting raw to be processed in some fancy tool but that DSLR and stand and tool generally complicate matters far more than they add in quality. Sometimes this is worth it, often it is not.
Also, to claim trust has been "broken" is just weird. Every software engineer should be well aware of the horrible mess that is the PHP language even if they had just had a cursory glance at it.
In any case. I would never pick PHP on purpose either. Even if it was the most appropriate tool in a given situation. It simply makes my blood boil, and I don't care if it's irrational.
Both development team and the community matured and learned a lot. The language lost a few of its footguns, but preserve a lot for compatibility reasons. The best practices evolved in good ways, but the old documentation is still around.
So, yes it changed. If it changed enough is a different question.
Can you elaborate on this a bit? What trust did you have in PHP, and what did it do to break that?
PHP was an utter mess. Has it changed? I don’t care. It broke my trust and I’ve moved onto languages that are more thoughtful and general purpose. Returning to PHP would feel like returning to an abusive relationship