I think one of the greatest legacy of PHP was brining "Serverless" hosting to the masses, where you only focus on the "upload" of the code, and you didn't need an ISS or Linux expert to deploy your projects.
Yeah, PHP had a weird teenage phase, but even JS and Python still have a lot of weird things too (specially JS). But modern frameworks as Laravel, make PHP a great alternative for DJango/FastAPI, Rails or Nest.js.
Such a simple question as whether something is passed by reference or by value shouldn't result in "This is a super interesting piece of information! Looks like it's true; but I couldn' find any official documentation supporting this fact. We also need to know which versions of PHP support this lazy copy concept. Anyone has more info?" https://stackoverflow.com/a/9740541/3461
The price of a dedicated cpu is down to under $4 /month in common web hosts. Meanwhile the IO and other performance also improved so much that you dont ever, ever notice such things. So nobody cares about that kind of stuff. That's overoptimization that nobody asked for.
The same user found the documentation after they bothered doing an interesting modern technique called "looking for it".
You'd have known that if you read the comment right after the one you copied.
In my eyes, using something like Laravel takes away the "quick and dirty" aspect of PHP and adds a lot of things which have to be learned first, makes the project more stable and more comparable to a Python Django or Ruby on Rails project.
Drupal doesn't really seem to have an ecosystem left anymore.
There are still things you can only do with a custom sytem, but for most use-cases commercial site-design tools can get you up and running with much less upfront cost.
I designed & built about 20 websites from 2007 to 2014 or so, all with custom designs and backed by an off-the-shelf CMS. Except for the few I maintain for close friends & family, everyone has moved to Squarespace.
While I'm incredibly happy with that arrangement — nobody's pestering me about code I wrote a lifetime ago — it means a whole bunch of sites look much more generic.
For example I wrote some custom JS to dynamically tile pictures on this site: http://web.archive.org/web/20130722050828/https://www.firstc.... Now it displays photos in a generic fashion: https://www.firstchairpromo.com
Just think that before WordPress people were coding a whole website from scratch for the local photographer or news agency, with often sub-optimal and/or overpriced results.
> a whole bunch of sites look much more generic.
True, but that's just a consequence of letting the customer deal with it directly rather than a professional. Most PaaS still allow custom designs, nobody is stopping you from adding a Flash intro page.
It's terrible for a simple blog or small community or nonprofit site these days. I know because I still run my blog on it, only due to inertia at this point (golden hammer).
When more options become available, people stop choosing PHP.
And please don't reply with js, like "but PHP is better than shit", that's a real high bar.
[This is coming from a long time PHP dev who actually loves it.]
Its likely getting harder because PHP has developed its own specializations in the form of frameworks. Laravel is one, WordPress has become another. People look for 'Laravel developer', not 'PHP developer'. Or, 'Wocoomerce developer' -> not 'WordPress plugin developer', not 'WordPress developer', the least, not 'PHP developer'.
Specializing in one of such emerging specialization fields pays !much more! than just developing on PHP, so it will become more difficult to find PHP developers into the future. Especially the WordPress enterprise ecosystem sucks a lot of WordPress/PHP developers out of the contracting market into high-paid, long-term jobs.
For that reason its also the most successful front of Open Source where an actual thriving ecosystem was able to develop on it through freemium business formats like in WordPress ecosystem. The plugin ecosystem of WordPress was estimated to have $1 bn volume a few years ago. And its quite streamlined in providing software and services at scale to the point of providing ordinary users and small businesses with features at price points they would not hesitate to pay. It does constitute an example for the rest of the Open Source world could follow or at least learn from.
that is not the merit of PHP itself, more like characteristic of the period (when tech salary hasn't yet been inflated and consumer devices' computing power has not yet become abundant).
Probably rare but I had task to rewrite Node API to PHP because of deployment...