PHPackages                             innmind/templating - 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. innmind/templating

Abandoned → [innmind/ui](/?search=innmind%2Fui)ArchivedLibrary[Templating &amp; Views](/categories/templating)

innmind/templating
==================

Templating

3.2.0(2y ago)0708↓100%11MITPHPPHP ~8.2

Since Aug 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Innmind/Templating)[ Packagist](https://packagist.org/packages/innmind/templating)[ Docs](http://github.com/Innmind/Templating)[ RSS](/packages/innmind-templating/feed)WikiDiscussions develop Synced 2mo ago

READMEChangelog (3)Dependencies (7)Versions (9)Used By (1)

Templating
==========

[](#templating)

[![Build Status](https://github.com/innmind/templating/workflows/CI/badge.svg?branch=master)](https://github.com/innmind/templating/actions?query=workflow%3ACI)[![codecov](https://camo.githubusercontent.com/553d5f567c041c42895ef32e7ec118fb3fb1a5736da89347ff358df4ea6ce383/68747470733a2f2f636f6465636f762e696f2f67682f696e6e6d696e642f74656d706c6174696e672f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/innmind/templating)[![Type Coverage](https://camo.githubusercontent.com/5eef874f44f67d8a8c35ced994a9e5c6ed5e388951918a8a57d123564a4a0137/68747470733a2f2f73686570686572642e6465762f6769746875622f696e6e6d696e642f74656d706c6174696e672f636f7665726167652e737667)](https://shepherd.dev/github/innmind/templating)

Library to wrap php template engines (currently only twig).

Installation
------------

[](#installation)

```
composer require innmind/templating
```

Usage
-----

[](#usage)

```
use Innmind\Templating\Factory;
use Innmind\Templating\Name;
use Innmind\Url\Path;

$render = Factory::build(
    Path::of('templates/dir'),
    Path::of('/tmp/cache'), // optional
    Map::of(), // optional, variables accesible everywhere in templates
);
$rendered = $render(new Name('template.html.twig')); // Instance of Innmind\Filesystem\File\Content
```

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

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

Every ~310 days

Recently: every ~331 days

Total

7

Last Release

972d ago

Major Versions

1.1.0 → 2.0.02020-02-01

2.1.0 → 3.0.02022-04-18

PHP version history (5 changes)1.0.0PHP ~7.2

2.0.0PHP ~7.4

2.1.0PHP ~7.4|~8.0

3.0.0PHP ~8.1

3.2.0PHP ~8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/851425?v=4)[Baptiste Langlade](/maintainers/Baptouuuu)[@Baptouuuu](https://github.com/Baptouuuu)

---

Top Contributors

[![Baptouuuu](https://avatars.githubusercontent.com/u/851425?v=4)](https://github.com/Baptouuuu "Baptouuuu (48 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (2 commits)")

---

Tags

templating

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/innmind-templating/health.svg)

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

###  Alternatives

[timber/timber

Create WordPress themes with beautiful OOP code and the Twig Template Engine

5.7k3.4M111](/packages/timber-timber)[jasny/twig-extensions

A set of useful Twig filters

10710.2M8](/packages/jasny-twig-extensions)[jms/twig-js

twig.js, flexible, secure, and high-performance templating engine for Javascript

360389.6k5](/packages/jms-twig-js)[goetas/twital

PHP templating engine that combines Twig and PHPTal power points

12813.1k1](/packages/goetas-twital)[tommcdo/kohana-twig

Kohana 3.3 module for the popular Twig template engine

241.9k](/packages/tommcdo-kohana-twig)

PHPackages © 2026

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