PHP template engines

A template engine is software that is designed to process web templates and content information to produce output web documents.

Smarty PHP Template Engine

Although Smarty is known as a "Template Engine", it would be more accurately described as a "Template/Presentation Framework." That is, it provides the programmer and template designer with a wealth of tools to automate tasks commonly dealt with at the presentation layer of an application.

Caching: Smarty provides fine-grained caching features for caching all or parts of a rendered web page, or leaving parts uncached.
Configuration Files: Smarty can assign variables pulled from configuration files.
Security: Templates do not contain PHP code. Therefore, a template designer is not unleashed with the full power of PHP, but only the subset of functionality made available to them from the programmer (application code.)


Dwoo PHP Template Engine
Dwoo is a PHP5 and PHP7 template engine which is (almost) fully compatible with Smarty templates and plugins.


Twig - a modern template engine for PHP


Tiny But Strong PHP Template Engine
TinyButStrong is a library that enables you to dynamically create XML/HTML pages and any other files based on text source. It's a Template Engine for the PHP language. It enables you to easily display information from your database, but also to seriously harmonize and simplify your PHP programming.


Template Lite
Template Lite: The smaller, faster templating solution
Template Lite is a stripped down version of Smarty and thus is extremely fast, yet very similar to Smarty.


Plates  -  is a native PHP template system that’s fast, easy to use and easy to extend. 


mustache - Logic-less templates


Blitz Templates
PHP Template Engine

Extremely fast and powerfull template engine for very big internet projects


TagTemplate
PHP library class
TagTemplate is a class that performs both of the above tasks, plus a bit more. You decide which via a function parameter.

Using the first option, you can, for example, "include" one HTML file in another, but without the <HEAD> tag or anything not inside the <BODY>. Or you could include a JavaScript that's embedded in one HTML file into another. Or you could surround an arbitrary piece of HTML code with some invented tag (such as, <INCLUDED_BIT>This is to be included in other files</INCLUDED_BIT>) and extract that HTML code snippet for insertion into another file.


htmltmpl: templating engine for separation of code and HTML
PHP Template Engine

The purpose of the templating engine is to provide web application developers, who need to separate the program code and the design (HTML code) of their web application projects, with a templating tool that can easily be used by cooperating webdesigners with no programming skills.


web.template
It's new template system for PHP. It's work only with PHP5, so I can't show same examples on this page - SF give only PHP4. Why this template system was different/better? It use XML-like look language, and you can call for templates method in your classes.


SimpleT
SimpleT is about "reclaiming" PHP as a template language for rendering HTML.