PHP code example of driveto / phpstan-twig

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

    

driveto / phpstan-twig example snippets


use App\Kernel;
use Symfony\Component\Dotenv\Dotenv;

nel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$kernel->boot();
return $kernel->getContainer()->get('twig');

parameters:
    twig:
        twigEnvironmentLoader: tests/TwigEnvironmentLoader.php