1. Go to this page and download the library: Download gelembjuk/templating 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/ */
gelembjuk / templating example snippets
$templateroptions = array(
'templatepath' => $templatesdir, // directory where templates are stored
'compiledir' => $compiledir, // directory to use for compilation temp files. It is needed fro Smarty, but not Twig
'usecache' => false, // don't cache . If true then use cache
'cachedir' => $cachedir, // path to cache directory. used if `usecache` is true
'extension' => 'htm' // our templates files will have htm extension
);