Twig

Twig vs Smarty: why is Twig often preferred for PHP templating?

The question is about Twig .

Answer:

Twig is the more common choice for new PHP projects today, mainly because Symfony has shipped it as the default template engine since Symfony 2 came out in 2011. Smarty is older, first released in the early 2000s, and it's still the preference in some codebases, particularly ones built before Twig existed or running on platforms like PrestaShop that bundled Smarty from the start.

Find your perfect Twig tech match

Looking for Twig at the moment

All our Twig are currently busy. Leave a request for info — we'll notify you once a suitable one becomes available.

Cortance 5-star rating on ClutchCortance 5-star rating on GoodFirms
Ilya Lisovski
Co-Founder & CTO

Thanks to Cortance's professionalism and collaborative approach, the end customer received a well-coded and highly scalable platform, which made them want to continue working with the client moving forward. The team was highly responsive and passionate about their work, offering the right approach.

Clutch
5.0/5.0
Mykhailo Tys
CEO

Cortance’s work received positive feedback from the client and their customers. The team provided seamless communication, and internal stakeholders were particularly impressed with the service provider's agility and quality of deliverables.

Clutch
5.0/5.0
Curved left line
We're Here to Help

Thinking about how to expand a tech team flexibly to adapt to different working paces?

Accelerate development, meet launch deadlines with flexible, much-needed capacity. Add new skills your team currently lacks.

Curved right line