schranz-templating / laminas-blade-integration
A integration of template renderer into laminas via blade template engine.
0.1.0
2022-09-17 15:53 UTC
Requires
- php: ^7.0 || ^8.0
- laminas/laminas-modulemanager: ^2.0
- laminas/laminas-servicemanager: ^2.0 || ^3.0
- schranz-templating/blade-adapter: ^0.1
README
Integrate the templating Blade Adapter into the Laminas Framework.
Part of the Schranz Templating Project.
Installation
Install this package via Composer:
composer require schranz-templating/laminas-blade-integration
Add the module to the config/modules.config.php.php
:
return [ // ... 'Schranz\Templating\Integration\Laminas\Blade', ];
Configuration
The example and default configuration can be found in config/module.config.php.
Extensions
To extend Blade functionality you can create a new service extending from Blade\Extension
the service need to be registered and its service name configured the module.config.php
:
return [ // ... 'schranz_templating_blade' => [ 'extensions' => [ \App\Blade\MyExtension::class, // or 'my_extension', ], ], ];