PHP code example of bearlikelion / twig-debugbar

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

    

bearlikelion / twig-debugbar example snippets


$twig = new Twig_Environment(new Twig_Loader_Filesystem('Views'));
$twig->addExtension(new Bearlikelion\TwigDebugBar\Extension('/Path')); // Relative assets path to your web directory e.g. /assets/debug/