PHPackages                             dkcwd/dkcwd-zf2-munee - 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. dkcwd/dkcwd-zf2-munee

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

dkcwd/dkcwd-zf2-munee
=====================

Zend Framework 2 module leveraging 'munee' an asset optimisation library developed by Cody Lundquist. You can find munee at http://github.com/meenie/munee

v1.2.6(13y ago)102.1k4[1 issues](https://github.com/dkcwd/dkcwd-zf2-munee/issues)MITPHPPHP &gt;=5.3.3

Since Dec 24Pushed 13y ago2 watchersCompare

[ Source](https://github.com/dkcwd/dkcwd-zf2-munee)[ Packagist](https://packagist.org/packages/dkcwd/dkcwd-zf2-munee)[ Docs](http://github.com/dkcwd/dkcwd-zf2-munee)[ RSS](/packages/dkcwd-dkcwd-zf2-munee/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

Use munee to optimise assets in your ZF2 Application
====================================================

[](#use-munee-to-optimise-assets-in-your-zf2-application)

---

Maintenance Status for DkcwdZf2Munee: [![project status](https://camo.githubusercontent.com/9fb105e8055bfbfc82e2743bf5e8d362682f17db4c5321d2587cf301271eac70/687474703a2f2f7374696c6c6d61696e7461696e65642e636f6d2f646b6377642f646b6377642d7a66322d6d756e65652e706e67)](http://stillmaintained.com/dkcwd/dkcwd-zf2-munee)

Build Status for DkcwdZf2Munee: [![Build Status](https://camo.githubusercontent.com/3e24ceefc268904093c3287cfced05ae79b81de420b2293fa4f853fd186ee6da/68747470733a2f2f7472617669732d63692e6f72672f646b6377642f646b6377642d7a66322d6d756e65652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/dkcwd/dkcwd-zf2-munee)

Build Status for Munee by Cody Lundquist: [![Build Status](https://camo.githubusercontent.com/c965a08b8f3072f08e377840aacd126e2efc8c7fb60ceed0d3d85fed0c8050d6/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6d65656e69652f6d756e65652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/meenie/munee)

Purpose of the module
---------------------

[](#purpose-of-the-module)

DkcwdZf2Munee is a Zend Framework 2 (ZF2) module which brings the joy of '[munee](http://github.com/meenie/munee)', an asset optimisation library developed by Cody Lundquist, to ZF2 applications. It is easy to implement and provides access to the features of [munee](http://github.com/meenie/munee) through 3 ZF2 view helpers, 1 custom route and 1 simple controller.

Features of the module
----------------------

[](#features-of-the-module)

- 3 ZF2 view helpers to correctly format munee requests
- 1 custom route to send munee requests to the munee controller
- 1 simple controller to handle munee requests

What is Munee?
--------------

[](#what-is-munee)

A PHP5.3 library developed by Cody Lundquist to easily run all CSS through [lessphp](http://leafo.net/lessphp/) ([LESS](http://lesscss.org/)), resize/manipulate images on the fly, minify CSS and JS, and cache assets locally and remotely for lightening fast requests. See  for more information. Some of the information below has been directly taken from the munee source repository.

Requirements
------------

[](#requirements)

- PHP5.3.3+
- Composer for installing and updating all dependencies
- A Zend Framework 2 application you can use to work with the module

[Composer](https://packagist.org/) Installation Instructions
------------------------------------------------------------

[](#composer-installation-instructions)

Just for reference when using Composer, if you have a slow connection consider using `COMPOSER_PROCESS_TIMEOUT=4000` prior to any `php composer.phar` commands to avoid a `[Symfony\Component\Process\Exception\RuntimeException] The process timed out` error. For example you may want to use `COMPOSER_PROCESS_TIMEOUT=4000 php composer.phar update` instead of `php composer.phar update`.

### If you have a Zf2 project set up which you can use

[](#if-you-have-a-zf2-project-set-up-which-you-can-use)

1. Go to your main ZF2 application `composer.json` file and add `"dkcwd/dkcwd-zf2-munee": "1.2.*"` so as an example, if you are using the [ZendSkeletonApplication](https://github.com/zendframework/ZendSkeletonApplication) and if no other requirements are meant to be specified in your main composer.json file, the composer.json file should be updated to look like this:

    ```
     {
     	"name": "zendframework/skeleton-application",
     	"description": "Skeleton Application for ZF2",
     	"license": "BSD-3-Clause",
     	"keywords": [
     		"framework",
     		"zf2"
     	],
     	"homepage": "http://framework.zend.com/",
     	"require": {
     		"php": ">=5.3.3",
     		"zendframework/zendframework": "2.*",
     		"dkcwd/dkcwd-zf2-munee": "1.2.*"
     	}
     }

    ```
2. Run `curl -s http://getcomposer.org/installer | php`
3. Run `php composer.phar update`
4. Once the installation is complete go to your ZF2 `application.config.php` file and add `'DkcwdZf2Munee'` to the list of modules. As an example assuming no other modules are in use except for the `Application` module which comes with the [ZendSkeletonApplication](https://github.com/zendframework/ZendSkeletonApplication) it would look like this:

    ```
