PHPackages                             zendframework/zend-expressive-template - 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. zendframework/zend-expressive-template

Abandoned → [mezzio/mezzio-template](/?search=mezzio%2Fmezzio-template)ArchivedLibrary[Templating &amp; Views](/categories/templating)

zendframework/zend-expressive-template
======================================

Template subcomponent for Expressive

2.0.1(7y ago)201.8M↓25.5%4[2 issues](https://github.com/zendframework/zend-expressive-template/issues)19BSD-3-ClausePHPPHP ^7.1

Since Dec 2Pushed 6y ago7 watchersCompare

[ Source](https://github.com/zendframework/zend-expressive-template)[ Packagist](https://packagist.org/packages/zendframework/zend-expressive-template)[ RSS](/packages/zendframework-zend-expressive-template/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)Dependencies (3)Versions (10)Used By (19)

zend-expressive-template
========================

[](#zend-expressive-template)

> ## Repository abandoned 2019-12-31
>
> [](#repository-abandoned-2019-12-31)
>
> This repository has moved to [mezzio/mezzio-template](https://github.com/mezzio/mezzio-template).

[![Build Status](https://camo.githubusercontent.com/403fd50815c030e6bb7f00c1a15dcb7e7ae955fa36fb6207431c8cac95659d61/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7a656e646672616d65776f726b2f7a656e642d657870726573736976652d74656d706c6174652e7376673f6272616e63683d6d6173746572)](https://secure.travis-ci.org/zendframework/zend-expressive-template)[![Coverage Status](https://camo.githubusercontent.com/128094a8f0fbf149318002485a1b1b3d0904f68085af9db28578f6476bccb598/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7a656e646672616d65776f726b2f7a656e642d657870726573736976652d74656d706c6174652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/zendframework/zend-expressive-template?branch=master)

Template subcomponent for [Expressive](https://github.com/zendframework/zend-expressive).

This package provides the following classes, interfaces, and traits:

- `TemplateRendererInterface`, a generic interface for providing template rendering capabilities.
- `TemplatePath`, a value object describing a (optionally) namespaced path in which templates reside; the `TemplateRendererInterface` returns these.
- `ArrayParametersTrait` provides helper methods you can mix in to implementations for normalizing template parameters to an array.
- `DefaultParamsTrait` provides helper methods you can mix in to implementations for aggregating default parameters as well as merging global, template-specific, and provided parameters when rendering.

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

[](#installation)

Typically, you will install this when installing Expressive. However, it can be used standalone to provide a generic way to provide templating to your application. To do this, use:

```
$ composer require zendframework/zend-expressive-template
```

We currently support and provide the following routing integrations:

- [Plates](https://github.com/thephpleague/plates): `composer require zendframework/zend-expressive-platesrenderer`
- [Twig](http://twig.sensiolabs.org/): `composer require zendframework/zend-expressive-twigrenderer`
- [ZF2 PhpRenderer](https://github.com/zendframework/zend-view): `composer require zendframework/zend-expressive-zendviewrenderer`

Documentation
-------------

[](#documentation)

Expressive provides [template documentation](https://docs.zendframework.com/zend-expressive/features/template/intro/).

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity48

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 55.6% 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 ~185 days

Recently: every ~309 days

Total

8

Last Release

2570d ago

Major Versions

1.0.4 → 2.0.0alpha12018-02-06

PHP version history (2 changes)1.0.0PHP &gt;=5.5

2.0.0alpha1PHP ^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/296074?v=4)[Zend Framework](/maintainers/zendframework)[@zendframework](https://github.com/zendframework)

---

Top Contributors

[![weierophinney](https://avatars.githubusercontent.com/u/25943?v=4)](https://github.com/weierophinney "weierophinney (79 commits)")[![michalbundyra](https://avatars.githubusercontent.com/u/7423207?v=4)](https://github.com/michalbundyra "michalbundyra (40 commits)")[![geerteltink](https://avatars.githubusercontent.com/u/9497586?v=4)](https://github.com/geerteltink "geerteltink (14 commits)")[![Koopzington](https://avatars.githubusercontent.com/u/3015529?v=4)](https://github.com/Koopzington "Koopzington (3 commits)")[![Xerkus](https://avatars.githubusercontent.com/u/725842?v=4)](https://github.com/Xerkus "Xerkus (3 commits)")[![bakura10](https://avatars.githubusercontent.com/u/1198915?v=4)](https://github.com/bakura10 "bakura10 (2 commits)")[![alucic](https://avatars.githubusercontent.com/u/1689028?v=4)](https://github.com/alucic "alucic (1 commits)")

---

Tags

templateZendFrameworkzfexpressivezend-expressive

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zendframework-zend-expressive-template/health.svg)

```
[![Health](https://phpackages.com/badges/zendframework-zend-expressive-template/health.svg)](https://phpackages.com/packages/zendframework-zend-expressive-template)
```

###  Alternatives

[elie29/zend-phpdi-config

PSR-11 PHP-DI autowire container configurator for Laminas, Mezzio, ZF2, ZF3 and Zend Expressive applications

19248.3k8](/packages/elie29-zend-phpdi-config)

PHPackages © 2026

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