PHPackages                             bobthecow/mustache-bundle - 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. bobthecow/mustache-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

bobthecow/mustache-bundle
=========================

Symfony Mustache.php Bundle

v1.2.0(11y ago)1886.1k↓41.7%9[2 issues](https://github.com/bobthecow/BobthecowMustacheBundle/issues)[2 PRs](https://github.com/bobthecow/BobthecowMustacheBundle/pulls)MITPHPPHP &gt;=5.3.2

Since Mar 31Pushed 9y ago2 watchersCompare

[ Source](https://github.com/bobthecow/BobthecowMustacheBundle)[ Packagist](https://packagist.org/packages/bobthecow/mustache-bundle)[ Docs](http://github.com/bobthecow/BobthecowMustacheBundle)[ RSS](/packages/bobthecow-mustache-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

MustacheBundle
==============

[](#mustachebundle)

A Symfony implementation of the Mustache template rendering. This will add Mustache as a renderer in Symfony

1. Installing

---

### Composer

[](#composer)

Just run following command with composer:

```
composer.phar require bobthecow/mustache-bundle

```

Lookup desired version constraint from packagist. After adding this run

```
composer.phar update

```

### AppKernel

[](#appkernel)

To actually download and use this bundle. Also add following line to your `AppKernel.php`

```
new Bobthecow\Bundle\MustacheBundle\BobthecowMustacheBundle()

```

### config.yml

[](#configyml)

Add rendererer to your config.yml

```
framework:
    templating:
        engines: ['twig', 'mustache']

```

2. Using it

---

Like you would use twig. Just put your mustache file in your Resources\\views folder using `.mustache` as extension. E.g.

```
    // Render Mustache template and return response
    return $this->render('AcmeDemoBundle:Hello:index.html.mustache');

```

Or pass along the template in the Template() annotation

```
    /**
     * @Template("AcmeDemoBundle:Hello:index.html.mustache")
     */
     public function indexAction()
     {
         return array();
     }

```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~101 days

Total

2

Last Release

4330d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c38e57a7804048586f181f2cbc8f0b3d7ebe71056c98ff571020a76b159afd55?d=identicon)[bobthecow](/maintainers/bobthecow)

---

Top Contributors

[![bobthecow](https://avatars.githubusercontent.com/u/53660?v=4)](https://github.com/bobthecow "bobthecow (10 commits)")[![keradus](https://avatars.githubusercontent.com/u/2716794?v=4)](https://github.com/keradus "keradus (5 commits)")[![carriom](https://avatars.githubusercontent.com/u/1664973?v=4)](https://github.com/carriom "carriom (2 commits)")

---

Tags

symfonySymfony2templatingmustacheSF2

### Embed Badge

![Health badge](/badges/bobthecow-mustache-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/bobthecow-mustache-bundle/health.svg)](https://phpackages.com/packages/bobthecow-mustache-bundle)
```

###  Alternatives

[salesforce/handlebars-php

Handlebars processor for php

80713.2k11](/packages/salesforce-handlebars-php)[noiselabs/smarty-bundle

This Symfony bundle provides integration for the Smarty3 template engine.

53194.4k1](/packages/noiselabs-smarty-bundle)[zombor/kostache

Logic-less View/Mustache Module for the Kohana Framework

1382.1k2](/packages/zombor-kostache)[voodoophp/handlebars

Handlebars processor for php

34158.9k2](/packages/voodoophp-handlebars)[mustache/silex-provider

A Mustache service provider for Silex.

1462.4k1](/packages/mustache-silex-provider)[wrklst/docxmustache

docx template manipulation class, based on mustache templating language

578.1k](/packages/wrklst-docxmustache)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
