PHP code example of anpv1 / minplate

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

    

anpv1 / minplate example snippets


function __construct($template_path = './');
function add_path($template_path);
function assign(string $variable_name, $value);
function 


use MinPlate\Template;

$template = new Template('../templates');
$template->assign('name', 'An');
echo $template->render('page.tpl');
html+php
 $this->