PHPackages                             e7o/morosity - 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. e7o/morosity

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

e7o/morosity
============

A mostly standard template engine without all the overhead

190PHP

Since Mar 6Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/e7o-de/morosity)[ Packagist](https://packagist.org/packages/e7o/morosity)[ RSS](/packages/e7o-morosity/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Welcome to the Morosity Template Engine
---------------------------------------

[](#welcome-to-the-morosity-template-engine)

This is a small template engine with a pretty similar syntax to other existing ones, like Twig or Smarty or so.

The main idea behind it was to have something where I can reuse existing .twig files without all that fat Twig implementation with all that fancy caches etc. And, of course, just the fun of it.

Code quality might improve in future, as well as the feature set, but for now it's pretty acceptable.

Quick start
-----------

[](#quick-start)

```
composer require e7o/morosity

```

For now, you might need an `"minimum-stability": "dev"` in your composer.json.

Simplest usage:

```
$template = new \e7o\Morosity\Morosity(
	new \e7o\Morosity\Loader\FileLoader('templates')
);
echo $template->render(
	'hello.htm',
	['var1' => 'hello world']
);

```

Status &amp; license
--------------------

[](#status--license)

The engine is actually working.

License is kept simple, just a LGPLv3 or later.

Tests?
------

[](#tests)

Functionality:

```
php spec/verify.php

```

Speed:

```
php spec/measure.php

```

Yes, this aren't actual unit tests you might have expected.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance57

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/608194?v=4)[E7](/maintainers/e7)[@e7](https://github.com/e7)

---

Top Contributors

[![e7o-de](https://avatars.githubusercontent.com/u/1502172?v=4)](https://github.com/e7o-de "e7o-de (100 commits)")

### Embed Badge

![Health badge](/badges/e7o-morosity/health.svg)

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

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)

PHPackages © 2026

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