1. Go to this page and download the library: Download larsgmortensen/liteview 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/ */
larsgmortensen / liteview example snippets
use LiteView\LiteView;
use LiteView\LiteView;
LiteView::render(
'home.html', // Template file (relative to $templatePath)
'/path/to/templates/', // Template directory
true, // Enable cache
'/path/to/cache/', // Cache directory
true, // Trim whitespace
true, // Remove HTML comments
['title' => 'Hello World'], // Data/template variables
true // Allow raw PHP blocks ({? ... ?})
);