Skip to content
/ zf3-twig Public

ZendTwig is a module that integrates the Twig template engine with Laminas.

License

Notifications You must be signed in to change notification settings

OxCom/zf3-twig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • From release v1.0.0 this project depends on Laminas Project components.
  • Development of package udner PHP5.6 has low priority and will be discontinued in closest feature.

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.