PHPackages                             johnpbloch/micro-twig - 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. johnpbloch/micro-twig

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

johnpbloch/micro-twig
=====================

Twig templates for MicroMVC Library's Views

1.0.2(13y ago)210MITPHP &gt;=5.3.0

Since Jan 18Pushed 13y ago2 watchersCompare

[ Source](https://github.com/johnpbloch/MicroTwig)[ Packagist](https://packagist.org/packages/johnpbloch/micro-twig)[ Docs](https://github.com/johnpbloch/microtwig)[ RSS](/packages/johnpbloch-micro-twig/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

MicroTwig
=========

[](#microtwig)

MicroTwig is an extension for the [Micro framework libraries](https://github.com/Xeoncross/Micro). It connects Micro to the [Twig templating library](http://twig.sensiolabs.org/).

### Use

[](#use)

To use, first [make sure your templates will work in Twig](http://twig.sensiolabs.org/doc/templates.html). Then, when you need to use a view, instantiate the MicroTwig view:

```
// You only need to set $directory once
\MicroTwig\View::$directory = '/path/to/your/views';
$view = new \MicroTwig\View('Layout');
```

### License

[](#license)

MicroTwig is released under the MIT license.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity60

Established project with proven stability

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 ~0 days

Total

3

Last Release

4890d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/044e10bd302ddb296511f2a463f61314bc17338c34fc0d292d05a425c655bc34?d=identicon)[johnpbloch](/maintainers/johnpbloch)

---

Tags

microtemplate

### Embed Badge

![Health badge](/badges/johnpbloch-micro-twig/health.svg)

```
[![Health](https://phpackages.com/badges/johnpbloch-micro-twig/health.svg)](https://phpackages.com/packages/johnpbloch-micro-twig)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)

PHPackages © 2026

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