AxisAsseticPlugin
This plugin that integrates Assetic into symfony, (*1)
Installation
Use Composer. Just add this dependency to your composer.json
:, (*2)
"require": {
"axis/axis-assetic-plugin": "dev-master"
}
Optional vendor libraries
CssMin
To use CssMin minifier add natxet/CssMin
dependency to your project's composer.json
., (*3)
LessPHP
To use LessPHP compiler add leafo/lessphp
dependency to your project's composer.json
., (*4)
JavascriptPacker
To use Javascript packer include Dean Edwards 's Packer
library into your project., (*5)
JSMin
To use JSMin minifier add nick4fake/jsmin
dependency to your project's composer.json
., (*6)
JSMinPlus
To use JSMinPlus minifier include Tino Zijdel's JSMinPlus
class into your project., (*7)
PhpCssEmbed
To use PhpCssEmbed filter add ptachoire/cssembed
dependency to your project's composer.json
., (*8)
ScssPhp
To use ScssPhp filter add leafo/scssphp
dependency to your project's composer.json
., (*9)
Usage
You can use all Assetic functionality in your project.
Also plugin defines all standard Assetic filters using factories.yml
and additionally custom FilterManager
that aware how to retrieve all that filters., (*10)
$filterManager = sfContext::getInstance()->get('assetic.filter_manager');
$filterManager->get('css_min');
Note: AxisAsseticPlugin uses factories.yml
configuration supported by
AxisServiceContainerPlugin, (*11)