filisko / debugbar-assets
Stolz/Assets Collector for Debugbar
1.1
2016-09-19 08:37 UTC
Requires
- maximebf/debugbar: >=1.11
- stolz/assets: >=0.1.8
This package is auto-updated.
Last update: 2024-09-10 04:45:25 UTC
README
这是为Stolz/Assets的Debugbar收集器,一个用于PHP的简单易用的资源管理库。😃
结果
CSS文件以红色显示,JS文件以蓝色显示。
安装
使用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));