PHPackages                             ssitu/nietzsche - 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. ssitu/nietzsche

ActiveLibrary

ssitu/nietzsche
===============

A Mustache wrap to render only perfect Mustache templates. Aka, monitor exceptions and missing variables.

v0.9.0(4y ago)03MITPHP

Since Jul 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/I-is-as-I-does/Nietzsche)[ Packagist](https://packagist.org/packages/ssitu/nietzsche)[ Docs](https://github.com/I-is-as-I-does/Nietzsche)[ RSS](/packages/ssitu-nietzsche/feed)WikiDiscussions main Synced 1mo ago

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

Nietzsche
=========

[](#nietzsche)

A Mustache wrap to render only perfect Mustache templates.
Aka, monitor exceptions and missing variables.

Getting Started
---------------

[](#getting-started)

```
composer require ssitu/nietzsche
```

Will also require [SSITU/Blueprints](https://github.com/I-is-as-I-does/Blueprints)

- `FlexLogsTrait` and
- `FlexLogsInterface` specifically.

This is a Psr-3 "logger aware" implementation with a fallback.
If no use of other SSITU blueprints, you can download just those two files.

And, well, you will need [Mustache](https://github.com/bobthecow/mustache.php/wiki) too.

How to
------

[](#how-to)

### Init

[](#init)

```
use SSITU\Nietzsche\Nietzsche;

require_once '/path/to/vendor/autoload.php';
$Nietzsche = new Nietzsche();
```

### Log

[](#log)

```
# optional:
$Nietzsche->setLogger($somePsr3Logger);
# alternatively, you can retrieve logs that way:
$Nietzsche->getLocalLogs();
// if no logger set: returns all logs history;
// else: only last entry
```

### Run

[](#run)

```
$v_ = ["planet"=>"world"]; #could also be an object, as specified by Mustache doc
$viewName = "hello";
$viewDir = "path/to/views/";
$mustacheOpts = []; # cf. Mustache doc

// will either render your template,
// or false if something went wrong --like a missing variable
$Nietzsche->renderPerfectMustache($v_, $viewName, $viewDir, $mustacheOpts);
```

[![Nietzsche Mustache](Nietzsche.jpg)](Nietzsche.jpg)

Contributing
------------

[](#contributing)

Sure! You can take a loot at [CONTRIBUTING](CONTRIBUTING.md).

License
-------

[](#license)

This project is under the MIT License; cf. [LICENSE](LICENSE) for details.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1751d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0abf823fded25a054764d7b7106a69b4281ff506994ffe2fea00d8a9296e715a?d=identicon)[I-is-as-I-does](/maintainers/I-is-as-I-does)

---

Top Contributors

[![I-is-as-I-does](https://avatars.githubusercontent.com/u/66915011?v=4)](https://github.com/I-is-as-I-does "I-is-as-I-does (4 commits)")

---

Tags

exception-handlingmustachephpphperror-monitoringmustache

### Embed Badge

![Health badge](/badges/ssitu-nietzsche/health.svg)

```
[![Health](https://phpackages.com/badges/ssitu-nietzsche/health.svg)](https://phpackages.com/packages/ssitu-nietzsche)
```

###  Alternatives

[zordius/lightncandy

An extremely fast PHP implementation of handlebars ( http://handlebarsjs.com/ ) and mustache ( http://mustache.github.io/ ).

60910.5M45](/packages/zordius-lightncandy)[wrklst/docxmustache

docx template manipulation class, based on mustache templating language

578.1k](/packages/wrklst-docxmustache)[brightmachine/laratash

A Laravel 5+ wrapper for mustache.php, a PHP implementation of http://mustache.github.io/

1214.7k](/packages/brightmachine-laratash)[bamboohr/api

Official PHP SDK for the BambooHR API. https://documentation.bamboohr.com

34101.5k1](/packages/bamboohr-api)[dearon/slim-mustache

Mustache View Parser package for the Slim Framework

144.8k2](/packages/dearon-slim-mustache)[leon-mbs/zippy

Компонентный событийно-ориентированный PHP фреймворк

102.0k](/packages/leon-mbs-zippy)

PHPackages © 2026

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