PHP - is there a easy way to change from Smarty to TWIG templating system?

Viewed 3021

I am just wondering if there is a easy way to change over from smarty to Twig templating system, without a risk, and without editing manually one by one (because my site has over 1000+ templates files and i cannot re-write one by one) on the other hand ,

reason why i want to change over is

  1. Twig performs better in memory and cpu time (see http://fabien.potencier.org/article/34/templating-engines-in-php )

  2. smarty is now becoming very inactive and not the best template system around ...

  3. In smarty is in-ability use with modern frameworks like symfony ...etc

I found one converter

https://github.com/freshrichard/smartytotwig

however i don't the the accuracy of the template conversion on this one ..

any other ideas on what should i do ?

2 Answers
Related