1. Go to this page and download the library: Download cinam/template-parser 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/ */
cinam / template-parser example snippets
php
$parser = new \Cinam\TemplateParser\Parser();
$result = $parser->parse($text, $variables);
php
$text = '[IF age >= 18]You are an adult[ELSE]Sorry, you are too young[ENDIF]';
$parser = new \Cinam\TemplateParser\Parser();
echo $parser->parse($text, ['age' => 18]);