PHP code example of konstantin-s / silex-assetmerge

1. Go to this page and download the library: Download konstantin-s/silex-assetmerge 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/ */

    

konstantin-s / silex-assetmerge example snippets


composer 

$app->register(new Performance\AssetMerge\AssetMergeProvider());

$app->register(new Performance\AssetMerge\AssetMergeProvider(), array(
    "assetmerge.config" => array(
        "active" => true,
        "alwaysReMerge" => true,
        "fetchRemote" => false,
        "mergedCssRootDir" => "/my_merged_css/",
        "mergedJsRootDir" => "/my_merged_js/"
    )
));