Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic.
View the Project on GitHub smarty-php/smarty
Smarty comes with several custom plugin functions that you can use in the templates.