PHP code example of bephp / microtpl

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

    

bephp / microtpl example snippets

 echo $title;
 echo $title;
 echo $content;
 if(isset($messages)):
 foreach($messages as $key => $message):
 echo '#message-'.($key+1);
 echo $message['title'];
 endforeach;
 endif;
 if(isset($messages)):
 foreach($messages as $key => $message):
 echo 'message-'.($key+1);
 echo ($key%2 ? 'odd' : 'even');
 echo $key+1;
 echo $message['content'];
 endforeach;
 endif;