4 ms·
Are you asking "is PHP still relevant as a tool?". (the 'it' was slightly ambiguous to me. PHP is absolutely relevant, I'd think, by many peoples' measurement
by mgkimsal 5y ago
Are you asking "is PHP still relevant as a tool?". (the 'it' was slightly ambiguous to me.
PHP is absolutely relevant, I'd think, by many peoples' measurements. But... we're on a 'hacker' site and people love to dump on PHP. PHP powers a large portion of internet sites. One estimate from w3techs is ~80% of sites with a known server side language are PHP.
Yes, much is WordPress. If you estimate that half of that is Wordpress, that still would leave... ~35%-40% of sites using PHP. Maybe even that is too high. What if it's 30%? That's a large number, both in terms of percent and absolute numbers.
Yes, PHP is 'relevant'. The ecosystems (Symfony, Laravel, etc) are pragmatically iterating, evolving goods ideas from a wide spectrum of web platforms. The language itself is similarly pragmatic, adopting new features, deprecating legacy stuff, and moving forward. The language is roughly 3x faster than it was 10 years ago, while retaining a lot of backwards compatibility.
The language itself along with various frameworks offers a good combination of speed of development, flexibility and rigor. The 'shared nothing' default makes it easier to reason about for many problems. Need to write a small shell script? Easy in PHP. Need to scale up to large loads? PHP can do it. There will be scaling concerns in any large setup - a PHP platform will likely have similar problems that other language/stacks will encounter at similar load.
So again, yes, it's relevant. There will be some other response saying "no", and then ... we'd have to define what you mean by 'relevant'... :)
Popular? Growing? Evolving? Uptick in usage for many problem spaces? Easy to scale?
I'd say 'yes' to all of those.
- mkr-hn 5y agoOn WordPress: it's important to remember it's a starting point for most of those uses. It's what people build entire platforms on when they don't want to/can't afford to start from scratch. People sometimes dismiss the number because "it's all WordPress," but that would be like dismissing Rails or Django. WP isn't exactly like Rails/Django, but it fills the same niche where you can pretty much assemble anything you can think of from pre-made components.
- tmh88j 5y ago>WP isn't exactly like Rails/Django, but it fills the same niche where you can pretty much assemble anything you can think of from pre-made components. Headless WP is becoming very popular too, and it seems to fill the same role. I've never used it, but I would imagine it takes just as much knowledge to build an SPA as any other backend framework like Laravel or Rails. https://wpengine.com/headless-cms-research/ https://wpengine.com/headless-cms-research/
- javchz 5y agoA lot of people talk about serverless hosting like a new paradigm. But I will say the success of php was the huge amount of hosting providers where you send the files trough FTP, linked a domain and that's it, it's working. No Linux terminal knowledge need it or worry about Nginx, SQL, or iptables configuration. Yeah most of those cpanels hostings are bad for scale, but for a lot of new devs allowed them to deploy without having to be a sysadmin
- smaps 5y agoWithout those cpanel hosts I wouldn't be a web developer today. It was so easy for me to start messing around and teaching myself to code using them.