PHP code example of buuum / template

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

    

buuum / template example snippets


$dir = __DIR__.'/views',
$supportView = new ViewSupport();
$view = new View($dir, $supportView);

<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="utf-8">
    <meta content="<?= $this->getHeader('description') 


class ViewSupport implements ParseViewInt
{
    public function filter_number($value, $params)
    {
        if (!empty($params)) {
            return number_format($value, ...$params);
        }
        return number_format($value, 0, '.',',');
    }
}