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 3mo ago1 watchersCompare

[ Source](https://github.com/e7o-de/morosity)[ Packagist](https://packagist.org/packages/e7o/morosity)[ RSS](/packages/e7o-morosity/feed)WikiDiscussions master Synced 2w 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

21

—

LowBetter than 18% of packages

Maintenance53

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity12

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

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

281.8k](/packages/webkinder-sproutset)

PHPackages © 2026

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