PHP - is there a easy way to change from Smarty to TWIG templating system?
php, smarty, twig
Solution
It's an old question, but if someone has the same problem this could help.
I used toTwig to convert Smarty templates to Twig templates. Converted without an error.
Problem
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 Twig performs better in memory and cpu time (see http://fabien.potencier.org/article/34/templating-engines-in-php ) smarty is now becoming very inactive and not the best template system around ... 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 ?