1. Go to this page and download the library: Download php-compatible/templates library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
php-compatible / templates example snippets
<h1> echo $title;
l = template('views/hello.php', array(
'title' => 'Hello World',
'message' => 'Welcome to my site!'
));
echo $html;
<!-- views/list.php -->
<ul>
foreach ($items as $item):