# Php template engine

**URL:** https://forum.kirupa.com/t/php-template-engine/166728
**Category:** Uncategorized
**Created:** [October 22, 2005, 4:27am UTC](https://forum.kirupa.com/t/php-template-engine/166728 "2005-10-22T04:27:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![eirche](https://avatars.discourse-cdn.com/v4/letter/e/e95f7d/32.png) [@eirche](https://forum.kirupa.com/u/eirche)
#### Post date: [October 22, 2005, 4:27am UTC](https://forum.kirupa.com/t/php-template-engine/166728/1 "2005-10-22T04:27:16Z")

</div>

i am looking for a php template engine. what do you recommand?  
– able to input template from file or string  
– able to output html into a string or print out to a stream (similar to [font=courier]sprintf()[/font] and [font=courier]printf()[/font])  
– support nested blocks  
– easy interface  
– compact and fast

> **[A Complete List of PHP Template Engines?](https://www.sitepoint.com/community/t/a-complete-list-of-php-template-engines/1395)**
>
> Conducting a small experiment. Been wondering "Just how many template engines does PHP have?". My guess is there's probably at least 50 Open Source template engines out there but was hoping for a more precise number. The reason why is get a feel for...
