PHP code example of futape / php-template

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

    

futape / php-template example snippets


Hello  echo $name; 

use Futape\PhpTemplate\Template;

$template = (new Template('template.php'))
    ->addVariable('name', 'Stranger');

echo $template->render();
/* Hello Stranger,

this is an usage example of futape/php-template.
Your installed PHP version is 7.2.0.

Here's a list of all defined variables:

name: Stranger
... */
bash
composer