PHPackages                             widmogrod/zf2-mustache-module - 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. widmogrod/zf2-mustache-module

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

widmogrod/zf2-mustache-module
=============================

Zend Framework 2 module providing integration with the Mustache rendering engine.

1119.6k6[1 issues](https://github.com/widmogrod/zf2-mustache-module/issues)PHP

Since Nov 18Pushed 10y ago1 watchersCompare

[ Source](https://github.com/widmogrod/zf2-mustache-module)[ Packagist](https://packagist.org/packages/widmogrod/zf2-mustache-module)[ RSS](/packages/widmogrod-zf2-mustache-module/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Mustache
========

[](#mustache)

Summery
-------

[](#summery)

Zend Framework 2 module providing integration with [mustache.php](https://github.com/bobthecow/mustache.php/wiki) rendering engine

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

[](#requirements)

- Zend Framework 2 (). Tested on *Zend Framework 2.0.0rc6*.

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

[](#installation)

### Composer installation

[](#composer-installation)

1. `cd my/project/directory`
2. create a `composer.json` file with following content:

    ```
    {
        "require": {
            "widmogrod/zf2-mustache-module": "dev-master"
        }
    }
    ```
3. run `php composer.phar install`
4. open my/project/folder/configs/application.config.php and add 'Mustache' to your 'modules' parameter.

How to add Mustache rendering to ZF2
------------------------------------

[](#how-to-add-mustache-rendering-to-zf2)

Add to your Application module config file (module.config.php) new rendering strategy as following:

```
