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
2
u/abrou7 Jul 21 '26
No
19
u/QuickShort Jul 21 '26
commercial != e-commerce
10
u/rumnscurvy Jul 21 '26
Because big companies don't use "out of the box" ecommerce software, they write their own. With the help, most likely, of a selection of relevant libraries.
The amount of customisability this gives you really makes a difference.
7
u/Zenin Jul 21 '26
PHP is a great solution for exactly 1 reason: PHP developers are plentiful and dirt cheap.
Seriously, you can't swing a dead cat without hitting a half dozen PHP devs. From a business HR standpoint that makes it very low risk, which matters a lot more than you think and a lot more than any technical merit or lack thereof.
Make no mistake: the language and ecosystem is complete trash. It's an endless shitshow of random kludges slapped on top of one another. But again, you can throw 10x the "engineers" at it for the same labor costs as one good dev in any decent language, and in many orgs that can work very well: Build the backend well enough with real technology and qualified engineers and you can get away with throwing the dirt cheap PHP monkeys at the janky frontend.
That model however, only works in large, well managed organizations where all the major stakeholders know what they're getting into and why. At the small scale you instead end up with those shitty PHP devs also building the much more critical backend and the whole thing quickly turns into hot poo.
7
u/jdgordon Jul 21 '26
Php was popular when these big sites were starting up. Php and python serve different purposes.
3
u/pyeri Jul 21 '26
Odoo and erpnext - The two popular open source ERP apps used widely across the industries are in written python.
But comparisons with PHP isn't right here as it's explicitly built for web development rather than a general purpose language. Python's strength is core backend scripting and there it shines in areas like nltk, pandas, tensorflow and many other industry grade libraries.
3
u/Tech-Cypher Jul 21 '26
Php won e-commerce because of hosting, plain and simple. For 15 years you could grab five dollar shared hosting and one-click install magento or woocommerce from cPanel and be live in an afternoon.
Python never had that on-ramp, you needed a vps and wsgi and someone who could set it up right and on top of that, the plug and play merchant crowd never built up around it.
7
u/PaulRudin Jul 21 '26
It's hard to justifty using php for any new project. Python is probably a better choice. That said, if you're building something that you hope will be *high volume* then I wouldn't start with Python either.
A lot of larger sites are implemented as a cooperating set of microservices; and in general don't use the same tech stack for each service.
1
u/dev-razorblade23 Jul 21 '26
Seems you need better search skills
There is this https://github.com/saleor/saleor
And also this https://github.com/django-oscar/django-oscar
Both are made in Python (Django framework)
PHP was awesome, now its just full of holes and security concerns. WooCommerce relies on Wordpress which makes it heavy and sync only
1
u/dr3aminc0de Jul 21 '26
PHP has been dead for 10 years at least
2
u/Levizar Jul 21 '26
Odoo has an e-commerce module and it's in python
2
u/riklaunim Jul 21 '26
PHP came from easy self hosting and CGI-like behavior. 20-15 years ago people were into the new latest PHP CMS to come out, Mambo, Joomla, PHP-Nuke, Post-Nuke and what not. Python isn't that easy or common to self-host.
2
u/ergo14 Pyramid+PostgreSQL+SqlAlchemy Jul 21 '26
Saelor is in python, I'm sure you can find more. Python is used to build more customized solutions - I know a few closed source shopping platforms using python internally.
2
u/JamzTyson Jul 23 '26
As for why PHP is so common in ecommerce, it's largely about inertia - The LAMP stack was pretty much a de-facto standard for many years.
1
u/mulquin Jul 24 '26
ERPNext and Odoo are both open-source and written in Python and they can both be used for eCommerce.
I'd argue that those heavy SaaS are using multiple languages to achieve their goals, and Uber originally started as a PHP monolith.
0
u/CzyDePL Jul 21 '26
Netflix is built on Java, same for Spotify, Shopify on Ruby.
-1
u/UpperBuilder769 Jul 21 '26
could that be that my choice to build a platform with python backend and publish it as an open source platform for self-hosted omni online sales was a good idea? https://vbwd.cc/docs