Stop Reinventing the Wheel: 5 Hidden Gems in PrestaShop’s Tools.php File
There’s a tension I often feel when talking with developers coming from the pure Symfony universe.
On one side, the ideal: clean code, decoupled, respecting SOLID principles. On the other, the reality of e-commerce field work: a rushed client, a shared server configured oddly, and the need to move fast.
Intuition pushes us to flee PrestaShop’s Tools class. It’s what’s called a “God Class”. A monolithic file of over 4000 lines (in the develop branch) that does everything: file management, HTTP, string manipulation…
Yet today, I’m going to ask you to do something counter-intuitive: stop rewriting helpers that PrestaShop has maintained for 15 years.







