1. Go to this page and download the library: Download zvax/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/ */
zvax / templating example snippets
$templateString = '{first}{$second}{$obj->third}';
$engine = new Engine();
$obj = new stdClass();
$obj->third = 'sentence.';
$string = $engine->render($templateString,[
'first' => 'This ',
'second' => 'is a ',
'obj' => $obj,
]);
// This is a sentence.