News for hackers. Stuff that matters.
Re:I still love PHP and JavaScript by bigtunacan on Wednesday August 03, 2022 @03:43AM (#32328762)
Laravel is the top choice for PHP frameworks these days which auto opts you into Blade. And just from my my own personal experience (so not necessarily a great sampling) every non-legacy PHP codebase I've been involved with on various teams had adopted other template engines with Twig being most common.

Also, to be frank, it's a real shame that people look down their noses at PHP so much just because of the sheer amount there is that can be learned about the practical application of design patterns from spending some time in the Laravel code base.

Re:I still love PHP and JavaScript by ipaddr on Wednesday August 03, 2022 @01:02PM (#32334258)
Smarty was prime to takeover the templating space in 2004 what happened?

PHP has had solutions from the beginning or at least early times.

PHP lacked that cult figurehead and was always community based. Most new languages are corporate sourced (open source by corporations).

Re:I still love PHP and JavaScript by bigtunacan on Thursday August 04, 2022 @11:46AM (#32344453)
Smarty is still around and well supported, but Twig is the top choice these days. Symfony is the 2nd most used "framework" these days, Twig is part of Symfony; then on top of that Symfony is really just a set of components (that work hard to adhere to current PSRs) so even projects that aren't Symfony projects will usually incorporate Symfony components as best of breed. Even Laravel relies on Symfony components.