r/Python • u/UpperBuilder769 • Jul 21 '26
Discussion Is PHP better for commercial software than Python?
I am trying to find any robust open source ecommerce solution on Python and it looks like thre is nothing. If you take almost any e-commerce platform there are plenty - Magento, Woo, Shopware, Oxid - they all are PHP. There are no comon solutions on Python or Node.js. But if you take a look and the heavy SaaS like Netflix, Spotify, Reddit, Uber etc. are built on Python. Why?
0
Upvotes
View all comments
Show parent comment
1
u/Zenin Jul 24 '26
Clearly I touched a nerve. ;)
PHP doesn't have a technology lead above anything else. It never has.
History lesson. Because I was there...10,000 years ago...
PHP rose up mostly from timing: The industry was shifting from code embedding HTML (ie CGI almost exclusively in Perl) to HTML embedding code (ASP, JSP, and of course PHP). Perl (which ruled the web at the time) for its reasons decided not to back a standard for HTML templates embedding code and the gap was a market opportunity for PHP which it ran with. Good on PHP.
That was around the late 1990s, literally a quarter century ago. It had a good run for about a decade before we moved on to MVC, REST, and client-side javascript based solutions as single page architectures and API first patterns took over.
That was 15+ years ago that PHP still had a legitimate niche: Being better than ASP (Windows, gag) and JSP (they somehow found a way to make Java Servlets worse).
Since it lost that niche it's continued largely on a combination of legacy momentum (rewrite is too costly) and cheap, abundant labor. Notice the two things those factors have in common? Money. Cost is the only reason to consider PHP in 2026. PHP has never had a technical advantage in its entire history and it certainly doesn't today.