PHP code example of rocketphp / template

1. Go to this page and download the library: Download rocketphp/template 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/ */

    

rocketphp / template example snippets


use RocketPHP\Template\Template;

$tpl = new Template('index.tpl');
$tpl->set('title', 'My Page Title');
echo $tpl->output();