Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


Repository abandoned 2019-12-31

This repository has moved to mezzio/mezzio-template.

Build Status Coverage Status

Template subcomponent for 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.


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: composer require zendframework/zend-expressive-platesrenderer
  • Twig: composer require zendframework/zend-expressive-twigrenderer
  • ZF2 PhpRenderer: composer require zendframework/zend-expressive-zendviewrenderer


Expressive provides template documentation.