filisko/debugbar-assets

Stolz/Assets Collector for Debugbar

1.1 2016-09-19 08:37 UTC

This package is auto-updated.

Last update: 2024-03-10 03:46:34 UTC


README

This is a Debugbar Collector for Stolz/Assets, an ultra-simple-to-use assets management library for PHP. 😃

Result

CSS files appear in red, JS files appear in blue.

Assets collector for Debugbar

Installation

Install it via composer:

composer require filisko/debugbar-assets

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));