PHPackages                             oxcom/zend-twig - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. oxcom/zend-twig

ActiveLibrary[Templating &amp; Views](/categories/templating)

oxcom/zend-twig
===============

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

v1.2.0(10mo ago)18115.4k↓69.6%6[1 issues](https://github.com/OxCom/zf3-twig/issues)MITPHPPHP &gt;=7.3CI failing

Since Nov 4Pushed 9mo ago6 watchersCompare

[ Source](https://github.com/OxCom/zf3-twig)[ Packagist](https://packagist.org/packages/oxcom/zend-twig)[ Docs](https://github.com/OxCom/zf3-twig)[ RSS](/packages/oxcom-zend-twig/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (14)Versions (32)Used By (0)

ZendTwig module for Zend Framework 3
====================================

[](#zendtwig-module-for-zend-framework-3)

[![Latest Stable Version](https://camo.githubusercontent.com/ef5d46fee667fea3da9cdd37aaf2db9cc86dbfdb615234785bd68420ba672c4c/68747470733a2f2f706f7365722e707567782e6f72672f6f78636f6d2f7a656e642d747769672f762f737461626c65)](https://packagist.org/packages/oxcom/zend-twig)[![Total Downloads](https://camo.githubusercontent.com/8aba4e91f50e4f7f02362e13ba131be52922d63dfb70652867279d35f5089506/68747470733a2f2f706f7365722e707567782e6f72672f6f78636f6d2f7a656e642d747769672f646f776e6c6f616473)](https://packagist.org/packages/oxcom/zend-twig)[![codecov.io](https://camo.githubusercontent.com/c5e56a76e991de5b2328e135487cd7561cb4481db267891a150ea32cfc7abccf/68747470733a2f2f636f6465636f762e696f2f6769746875622f4f78436f6d2f7a66332d747769672f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://codecov.io/github/OxCom/zf3-twig?branch=master)[![Build Status](https://camo.githubusercontent.com/466c6e2442e7b137ba98631e7899d1b27d1428d7426d0d80ff631f2510cc304c/68747470733a2f2f7472617669732d63692e6f72672f4f78436f6d2f7a66332d747769672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/OxCom/zf3-twig)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

ZendTwig is a module that integrates the [Twig](https://github.com/twigphp/Twig) template engine with [Zend Framework 3](https://github.com/zendframework/zendframework) / [Laminas Project](https://getlaminas.org/).

Notes
-----

[](#notes)

- From release v1.0.0 this project depends on [Laminas Project](https://getlaminas.org/) components.
- Development of package udner PHP5.6 has low priority and will be discontinued in closest feature.

Install
-------

[](#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
----------

[](#setting-up)

[Here](https://github.com/OxCom/zf3-twig/tree/master/docs) 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](https://github.com/OxCom/zf3-twig/blob/master/docs/Module.md)
2. [Custom Twig Extensions](https://github.com/OxCom/zf3-twig/blob/master/docs/Extensions.md)
3. [TwigModel](https://github.com/OxCom/zf3-twig/blob/master/docs/TwigModel.md)

Bugs and Issues
---------------

[](#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.

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance55

Moderate activity, may be stable

Popularity41

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 84.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~116 days

Recently: every ~522 days

Total

29

Last Release

307d ago

Major Versions

v0.3.1 → v1.0.02020-01-24

PHP version history (4 changes)v0.0.1PHP &gt;=5.6.0

v0.1.0PHP &gt;=7.0

v0.0.7PHP &gt;=5.6

v1.2.0PHP &gt;=7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4608564?v=4)[Andrey](/maintainers/OxCom)[@OxCom](https://github.com/OxCom)

---

Top Contributors

[![OxCom](https://avatars.githubusercontent.com/u/4608564?v=4)](https://github.com/OxCom "OxCom (73 commits)")[![reinfi](https://avatars.githubusercontent.com/u/9324423?v=4)](https://github.com/reinfi "reinfi (7 commits)")[![MatthiasKuehneEllerhold](https://avatars.githubusercontent.com/u/19988979?v=4)](https://github.com/MatthiasKuehneEllerhold "MatthiasKuehneEllerhold (5 commits)")[![vojtabiberle](https://avatars.githubusercontent.com/u/528942?v=4)](https://github.com/vojtabiberle "vojtabiberle (1 commits)")

---

Tags

laminaslaminas-moduletemplate-enginetwigzendframeworktwigzfmodulezf3

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/oxcom-zend-twig/health.svg)

```
[![Health](https://phpackages.com/badges/oxcom-zend-twig/health.svg)](https://phpackages.com/packages/oxcom-zend-twig)
```

###  Alternatives

[magento/community-edition

Magento 2 (Open Source)

12.1k54.3k13](/packages/magento-community-edition)[kokspflanze/zfc-twig

Laminas/Zend Framework Module that provides a Twig rendering strategy and extensions to render actions or trigger events from your templates

14314.4k4](/packages/kokspflanze-zfc-twig)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.2k1.2k](/packages/wheelpros-fitment-platform-api)[symfony/ux-twig-component

Twig components for Symfony

22020.2M441](/packages/symfony-ux-twig-component)[symfony/ux-live-component

Live components for Symfony

1657.5M154](/packages/symfony-ux-live-component)[symfony/ux-toolkit

A tool to easily create a design system in your Symfony app with customizable, well-crafted Twig components

16164.9k1](/packages/symfony-ux-toolkit)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
