'/path/to/compilation_cache', ]); echo $twig->render('index.html', ['name' => 'John Doe']); ?>
make('index', ['name' => 'John Doe'])->render(); ?>
setTemplateDir('/path/to/templates'); $smarty->setCompileDir('/path/to/templates_c'); $smarty->assign('name', 'John Doe'); $smarty->display('index.tpl'); ?>All the examples mentioned above use Composer, a package manager for PHP, to install and autoload the PHP Template library.