axis / axis-assetic-plugin
symfony 1.x plugin that integrates Assetic into symfony
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony1-plugin
Requires
- php: >=5.3.0
- axis/axis-service-container-plugin: dev-master
- composer/installers: *
- kriswallsmith/assetic: dev-master
Suggests
- leafo/lessphp: Needed to use LessPHP compiler
- leafo/scssphp: Needed for ScssPhp filter
- natxet/CssMin: Needed to use CssMin asset filter
- nick4fake/jsmin: Needed for JsMin filter
- ptachoire/cssembed: Needed for PhpCssEmbed filter
This package is not auto-updated.
Last update: 2020-05-01 16:45:46 UTC
README
This plugin that integrates Assetic into symfony
Installation
Use Composer. Just add this dependency to your composer.json
:
"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
.
LessPHP
To use LessPHP compiler add leafo/lessphp
dependency to your project's composer.json
.
JavascriptPacker
To use Javascript packer include Dean Edwards 's Packer library into your project.
JSMin
To use JSMin minifier add nick4fake/jsmin
dependency to your project's composer.json
.
JSMinPlus
To use JSMinPlus minifier include Tino Zijdel's JSMinPlus class into your project.
PhpCssEmbed
To use PhpCssEmbed filter add ptachoire/cssembed
dependency to your project's composer.json
.
ScssPhp
To use ScssPhp filter add leafo/scssphp
dependency to your project's composer.json
.
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.
$filterManager = sfContext::getInstance()->get('assetic.filter_manager'); $filterManager->get('css_min');
Note: AxisAsseticPlugin uses factories.yml
configuration supported by
AxisServiceContainerPlugin