Comparison of template engines of PHP frameworks

Veselina Spasova, Oleksii Raiu

Abstract


In this study, we compared two common template Engines - Blade and Twig, which are closely related, but have some very strong differences. Blade belongs to the Laravel CMF, which is built on top of the Symfony CMF. The Symfony CMF itself has its own template engine called Twig. As a result, we want to find answers of several important questions: what are the differences between Blade and Twig that made it desirable for the Laravel developers to come up with a new template engine besides Twig; how do Twig and Blade answer to developer needs and to make some objective suggestions that can help choosing between the two engines.

Keywords


PHP; Symfony; Laravel; performance; tools comparison

Full Text:

PDF

References


W3CTechs, Usage Statistics and Market Share of Server-side Programming Languages for Websites, March 2022, W3Techs, 2022, https://w3techs.com/technologies/overview/programming_language accessed March 2022.

.NET Application Architecture Guide, 2nd Edition, Microsoft Press, 2009.

Web frameworks market share, websites and contacts, Wappalyzer, https://www.wappalyzer.com/technologies/web-frameworks accessed March 2022.

CMS market share, websites and contacts, Wappalyzer, https://www.wappalyzer.com/technologies/cms. Accessed March 2022.

rcrowe/TwigBridge: Give the power of Twig to Laravel, GitHub, https://github.com/rcrowe/TwigBridge Accessed March 2022.




DOI: http://dx.doi.org/10.5281/zenodo.7091882

Refbacks

  • There are currently no refbacks.
We use cookies.