PHP code example of filisko / debugbar-assets

1. Go to this page and download the library: Download filisko/debugbar-assets 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/ */

    

filisko / debugbar-assets example snippets


// Your assets manager
$assetsManager = new \Stolz\Assets\Manager($config);

// Your debugbar
$debugbar = new \DebugBar\StandardDebugBar();

// Set the assets manager instance as first parameter to the assets collector,
// and add the collector to your Debugbar
$debugbar->addCollector(new \Filisko\DebugBar\DataCollector\AssetsCollector($assetsManager));