zendframework / zend-expressive-template
Template subcomponent for Expressive
Installs: 1 663 147
Dependents: 28
Suggesters: 1
Security: 0
Stars: 20
Watchers: 18
Forks: 9
Open Issues: 2
Requires
- php: ^7.1
Requires (Dev)
- malukenho/docheader: ^0.1.6
- phpunit/phpunit: ^7.0.2
- zendframework/zend-coding-standard: ~1.0.0
Suggests
- zendframework/zend-expressive-platesrenderer: ^2.0 to use the Plates template renderer
- zendframework/zend-expressive-twigrenderer: ^2.0 to use the Twig template renderer
- zendframework/zend-expressive-zendviewrenderer: ^2.0 to use the zend-view PhpRenderer template renderer
This package is auto-updated.
Last update: 2020-01-20 17:59:44 UTC
README
Repository abandoned 2019-12-31
This repository has moved to mezzio/mezzio-template.
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; theTemplateRendererInterface
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
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
Documentation
Expressive provides template documentation.