schranz-templating / mezzio-plates-integration
A integration of template renderer into mezzio via plates template engine.
0.1.0
2022-11-06 15:29 UTC
Requires
- php: ^7.4 || ^8.0
- mezzio/mezzio-platesrenderer: ^2.6
- psr/container: ^1.0 || ^2.0
- schranz-templating/plates-adapter: ^0.1
README
Integrate the templating Plates Adapter into the Mezzio Framework.
Part of the Schranz Templating Project.
Installation
Install this package via Composer:
composer require schranz-templating/mezzio-plates-integration
Register the ConfigProvider class in your config/config.php
if not already automatically
added by the framework:
// ... $aggregator = new ConfigAggregator([ // ... \Mezzio\Plates\ConfigProvider::class, \Schranz\Templating\Integration\Mezzio\Plates\ConfigProvider::class, ]);
Configuration
The Plates Integration has currently no configuration as Plates is supported out of the box by Mezzio and can be configured via the Mezzio Plates Renderer.
Usage with other Mezzio renderer
To use it side by side with other Mezzio renderer integrations you need configure the extension of the files:
// src/App/src/ConfigProvider.php class ConfigProvider { public function __invoke(): array { return [ // ... 'plates' => [ 'extension' => 'php', ], ]; } }