PHP code example of jaem3l / twig-eval-extension

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

    

jaem3l / twig-eval-extension example snippets

twig
{{ eval('echo 1+1;') }}