# bobthecow/mustache.php

A Mustache implementation in PHP.

Repository: https://github.com/bobthecow/mustache.php
Canonical: https://ross.abutalabs.com/products/mustachephp
Homepage: http://mustache.github.io/
Language: PHP
License: MIT
License Family: permissive
Last push: 2026-07-28T06:29:58+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 94, release rhythm 59, longevity 100
- inputs: {"age_days": 6011, "days_push": 36, "days_rel": 115, "gap_med": 157.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3287, forks 432 (observed 2026-08-28T04:07:53.814005+00:00)

## What it is
Mustache.php is a PHP implementation of the Mustache logic-less templating language, installable via Composer. It renders templates against arrays or view objects and supports features like lambda sections and configurable entity flags for XSS safety.

## Use cases
- render mustache templates in php
- logic-less template engine for php
- separate html templates from php logic
- render templates from view objects
- install mustache via composer

## When to choose
- you need spec-compliant Mustache templating in PHP
- you want logic-less templates with no embedded code
- you need a mature, widely-used PHP template library

## When to avoid
- you need template logic like conditionals beyond Mustache sections
- you prefer a full-featured engine like Twig with filters and inheritance
- you are not working in PHP

## Facets
- artifact type: library
- maturity: stable
- function: templating
- domain: web-development, frontend, developer-tools
- platform: php
- tags: mustache, logic-less-templates, template-engine, composer

## Member repositories
- bobthecow/mustache.php (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:53.814005+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:22:51.187568+00:00, confidence not recorded.
  - readme: https://github.com/bobthecow/mustache.php (fetched 2026-08-28T04:07:53.814005+00:00, sha d79f6ff09e9b)
  - homepage: http://mustache.github.io/ (fetched 2026-08-29T09:35:46.720763+00:00, sha f766c2eb4b3f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
