Stolz/Assets Collector for Debugbar
This is a Debugbar Collector for Stolz/Assets, an ultra-simple-to-use assets management library for PHP. :smiley:, (*1)
Result
CSS files appear in red, JS files appear in blue., (*2)
, (*3)
Installation
Install it via composer:, (*4)
composer require filisko/debugbar-assets
, (*5)
How to use
// 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));