PHP code example of shadesoft / twig-asset-version

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

    

shadesoft / twig-asset-version example snippets


// src/dependencies.php

// ...
$container['view'] = function($c) {
    //...
    $view->addExtension(new ShadeSoft\Twig\AssetVersionExtension);
    //...
}