filisko/debugbar-assets

Stolz/Assets Collector for Debugbar

安装: 16

依赖: 0

建议: 0

安全: 0

星标: 2

关注者: 1

分支: 0

开放问题: 0

类型:package

1.1 2016-09-19 08:37 UTC

This package is auto-updated.

Last update: 2024-09-10 04:45:25 UTC


README

这是为Stolz/Assets的Debugbar收集器,一个用于PHP的简单易用的资源管理库。😃

结果

CSS文件以红色显示,JS文件以蓝色显示。

Assets collector for Debugbar

安装

使用composer安装

composer require filisko/debugbar-assets

使用方法

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