1. Go to this page and download the library: Download azettl/php-nano-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/ */
azettl / php-nano-template example snippets
$nano = new com\azettl\nano\template();
$nano->setTemplate(
"<p>
{user.greeting()} {user.function(2)} {user.function('test')} {user.first_name} {user.last name}!
Your account is <strong>{user.account.status}</strong>
{user.nonexistingnode}
</p>"
);
$nano->setData($aData);
$nano->setShowEmpty(true);
echo $nano->render();