PHP code example of mareksokol / twig-jsontools
1. Go to this page and download the library: Download mareksokol/twig-jsontools 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/ */
mareksokol / twig-jsontools example snippets
$twig = new \Twig\Environment(new \Twig\Loader\FilesystemLoader('Views'));
$twig->addExtension(new \Mareksokol\TwigJsonTools\Extension);