Twig 3.25.0 released
1mon 1d ago by mander.xyz/u/nemeski in symfony@programming.dev from symfony.comOf all the languages, I’ve never understood why people “extend” PHP. It’s already got everything baked in. If you need a bloated framework on top of PHP, then PHP isn’t the answer you were looking for.
Twig is easier for security, everything is sanitised by default. Also helps to separate your view layer from your logic.
Think about how Wordpress goes about it, mixed logic and views and needing to wrap everything in an esc html, esc attr or whatever else other functions they have available because they decided to go the native php route.
Twig has a valid role to play in php web dev I reckon.
That was over a decade ago. Use modern PHP. Wordpress always did it WRONG anyway.