PHPackages                             vcomedia/vco-zf-minify - 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. [Templating &amp; Views](/categories/templating)
4. /
5. vcomedia/vco-zf-minify

ActiveLibrary[Templating &amp; Views](/categories/templating)

vcomedia/vco-zf-minify
======================

Zend Framework 2 headScript and headLink view helper wrappers to minify CSS &amp; JS.

05.9k1[4 issues](https://github.com/vcomedia/vco-zf-minify/issues)[1 PRs](https://github.com/vcomedia/vco-zf-minify/pulls)PHP

Since Sep 13Pushed 9y ago3 watchersCompare

[ Source](https://github.com/vcomedia/vco-zf-minify)[ Packagist](https://packagist.org/packages/vcomedia/vco-zf-minify)[ RSS](/packages/vcomedia-vco-zf-minify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

VcoZfMinify - Zend Framework 2 headScript, inlineScript and headLink view helper wrappers to minify CSS &amp; JS.
-----------------------------------------------------------------------------------------------------------------

[](#vcozfminify---zend-framework-2-headscript-inlinescript-and-headlink-view-helper-wrappers-to-minify-css--js)

This module extends the default headScript, inlineScript and headLink view helpers providing a simple means of adding CSS/JS minification capabilities to your Zend Framework 2 based applications. Currently, [Steve (mrclay) Clay's Minify](https://github.com/mrclay/minify) library is used for all minification. However, the minification service factory can be overriden to offer alternative minification services (i.e., Google's Closure Compiler) which we plan on including as an option shortly.

Installation
------------

[](#installation)

### Composer

[](#composer)

- Install [Composer](http://getcomposer.org/doc/00-intro.md)
- Install the module using Composer into your application's vendor directory. Add the following line to your `composer.json`.

```
{
   "require": {
       "vcomedia/vco-zf-minify": "dev-master"
   }
}
```

- Execute `composer update`
- Enable the module in your ZF2 `application.config.php` file.

```
return array(
    'modules' => array(
        'VcoZfMinify'
    )
);
```

- Copy and paste the `vco-zf-minify/config/module.vco-zf-minify.local.php.dist` file to your `config/autoload` folder and customize it with your configuration settings. Make sure to remove `.dist` from your file. Your `module.vco-zf-minify.local.php` might look something like the following:

```
