When working within an MVC architecture, it’s common to use a template library to populate the dynamic content of our views. There are dozens of such libraries available for PHP, but Twig is one of the standouts because of the ability to extend core features with custom implementations. In this article we’ll explore how Twig templates can be extended using template inheritance, filters, and functi
![PHP Master | Extending Twig Templates: Inheritance, Filters, Functions](https://cdn-ak-scissors.b.st-hatena.com/image/square/b0f47d7caa8f888e33fa72543419bc50a44ddfae/height=288;version=1;width=512/https%3A%2F%2Fwww.sitepoint.com%2Fwp-content%2Fthemes%2Fsitepoint%2Fassets%2Fimages%2Ficon.php.png)