PHPackages                             sugiphp/assets - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sugiphp/assets

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sugiphp/assets
==============

SugiPHP Assets Management Component based on Assetic

245721PHP

Since Dec 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/SugiPHP/Assets)[ Packagist](https://packagist.org/packages/sugiphp/assets)[ RSS](/packages/sugiphp-assets/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (1)

SugiPHP Asset Manager
=====================

[](#sugiphp-asset-manager)

[![Build Status](https://camo.githubusercontent.com/d058832a74801975ce01587e4a70b00cb679ddaae3340a527a9d95243db28b00/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f537567695048502f4173736574732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/SugiPHP/Assets/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/45fe47f6914c6b3230669f474d90af38c12b9cd301a04b6c82232ed0cffe2def/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f537567695048502f4173736574732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/SugiPHP/Assets/?branch=master)

SugiPHP\\Assets simplifies use of a well know asset management framework for PHP [Assetic](https://github.com/kriswallsmith/assetic).

CssPacker
---------

[](#csspacker)

Packs and minifies CSS stylesheet files. It can process LESS files as well.

```
$config = array(
	"input_path"  => "/path/to/your/assets",
	"output_path" => "/path/to/webroot/css",
	"debug"       => true
);
$css = new CssPacker($config);
// add several files atones
$css->add(array("reset.css", "common.css"));
// add one file
$css->add("pages/index.css");
// add a file not from the default input path:
$css->add("/absolute/path/to/stylesheet.css");

// In your template file:
