schranz-templating / mezzio-blade-integration
A integration of template renderer into mezzio via blade template engine.
0.1.0
2022-11-07 23:45 UTC
Requires
- php: ^7.0 || ^8.0
- psr/container: ^1.0 || ^2.0
- schranz-templating/blade-adapter: ^0.1
README
Integrate the templating Blade Adapter into the Mezzio Framework.
Part of the Schranz Templating Project.
Installation
Install this package via Composer:
composer require schranz-templating/mezzio-blade-integration
Register the ConfigProvider class in your config/config.php
if not already automatically
added by the framework:
// ... $aggregator = new ConfigAggregator([ // ... \Schranz\Templating\Integration\Mezzio\Blade\ConfigProvider::class, ]);
Configuration
The following configuration is available:
// src/App/src/ConfigProvider.php class ConfigProvider { public function __invoke(): array { return [ // ... 'blade' => [ 'paths' => 'src/App/templates', 'cache_dir' => 'data/cache/blade', ], ]; } }