PHP code example of ju1ius / twig-buffers-extension
1. Go to this page and download the library: Download ju1ius/twig-buffers-extension 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/ */
ju1ius / twig-buffers-extension example snippets
use Twig\Environment;
use ju1ius\TwigBuffersExtension\TwigBuffersExtension;
$twig = new Environment();
$twig->addExtension(new TwigBuffersExtension());
$twig->display('page.html.twig', ['greeting' => 'Hello buffers!']);