require_once 'Template.php'; $template = new Template('path/to/template/file.tpl');
$template->assign('title', 'My Website'); $template->assign('body', 'Welcome to my website!');
echo $template->render();In this example, we use the `render` method to display the template on the page. The PHP Template library is available as a package in most PHP frameworks, including Laravel, Symfony, and CodeIgniter.