PHP code example of template-interop / plates-adapter

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

    

template-interop / plates-adapter example snippets




use Interop\Template\Plates\PlatesEngine;

$plates = new League\Plates\Engine(__DIR__.'/templates');
$engine = new PlatesEngine($plates);
echo $engine->render('greeting', ['name' => 'John']);