OxCom / zf3-twig

ZendTwig is a module that integrates the Twig template engine with Laminas.
MIT License
19 stars 6 forks source link
laminas laminas-module template-engine twig zendframework

ZendTwig module for Zend Framework 3

Latest Stable Version Total Downloads codecov.io Build Status Software License

ZendTwig is a module that integrates the Twig template engine with Zend Framework 3 / Laminas Project.

Notes

Install

  1. Add ZendTwig lib with composer: composer require oxcom/zend-twig
  2. Add ZendTwig to Your config/application.config.php file as module:
    // Retrieve list of modules used in this application.
    'modules'                 => [
        'Zend\Router',
        'Zend\Validator',
        'Zend\I18n',
        'Zend\Mvc\I18n',
        'Application',
        // ...
        'ZendTwig',
    ],

Setting up

Here You can find some examples, configurations and e.t.c. that, I hope, will help You do build Your application. Short list of available docs:

  1. ZendTwig module
  2. Custom Twig Extensions
  3. TwigModel

Bugs and Issues

Please, if You found a bug or something, that is not working properly, contact me and tell what's wrong. It's nice to have an example how to reproduce a bug, or any idea how to fix it in Your request. I'll take care about it ASAP.