News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Gonzalo Ayuso's Blog:
PHP Template Engine Comparison
January 17, 2011 @ 08:16:37

In a new post to his blog Gonzalo Ayuso has put together a comparison of a few PHP templating alternatives out there developers can use to further separate the view logic from the main parts of their application.

Template engines has a lot of features but I normally only use a few of them and the other features very seldom. In this performance test I will check the same features under different template engines to see the syntax differences and the performance. The template engines selected for the test are Smarty, Twig and Haanga.

He does some testing with each, creating a basic template to loop and create a basic table (template code and PHP code included) as well as an example using template inheritance with each. The reports of his tests are shared at the end with stats for memory used and execution time for both the normal templates and the inherited versions - but you'll have to check out the post for those results.

1 comment voice your opinion now!
template engine compare benchmark twig haanga smarty


blog comments powered by Disqus

Similar Posts

Blue Parabola Blog: The SPL Deserves Some Reiteration

Jani Hartikainen's Blog: Doctrine vs. Propel: 2009 update

Zend Developer Zone: Creating Web Page Templates with PHP and Twig (part 2)

SitePoint PHP Blog: Message Queues: Comparing Beanstalkd, IronMQ and Amazon SQS

PHPBuilder.com: Working with the Symfony Components PHP Libraries


Community Events

Don't see your event here?
Let us know!


community php7 podcast language opinion library unittest example voicesoftheelephpant security interview framework video release laravel5 introduction version series laravel api

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework