PHPackages                             digihum/omeka-s-module-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. digihum/omeka-s-module-twig

ActiveOmeka-s-module[Templating &amp; Views](/categories/templating)

digihum/omeka-s-module-twig
===========================

Adds the twig templating language to Omeka-S

v3.4.0-alpha(2y ago)24MITPHPPHP &gt;=5.6.0

Since Nov 17Pushed 2y ago2 watchersCompare

[ Source](https://github.com/digihum/omeka-s-module-twig)[ Packagist](https://packagist.org/packages/digihum/omeka-s-module-twig)[ RSS](/packages/digihum-omeka-s-module-twig/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Twig module for Omeka-S
=======================

[](#twig-module-for-omeka-s)

This module integrates the [Twig](https://github.com/twigphp/Twig) template engine with [Omeka-S](https://github.com/omeka-s/omeka-s).

Thanks
------

[](#thanks)

This project borrows heavily from [ZendTwig](https://github.com/OxCom/zf3-twig) by OxCom.

Installation
------------

[](#installation)

1. Copy the project files into `$OMEKA_ROOT/modules/OmekaTwig`
2. If you installed via `git clone` (or the `vendor` directory does not exist for some other reason) run `composer install`
3. Go into the Omeka-S admin UI and activate the module

Using Twig templates in themes
------------------------------

[](#using-twig-templates-in-themes)

The module makes Omeka-S look for `*.twig` files in the normal theme directories. If a `*.twig` file is not found it then falls back to looking for a `*.phtml` file. E.g. if `layout.phtml` and `layout.twig` are both in `/view/layout` and the module is enabled `layout.twig` will be rendered. If the module is then disabled `layout.phtml` will be rendered.

If a twig template contains a phtml sub-template the subtemplate will be rendered using the normal Omeka-S phtml renderer. However, phtml templates **cannot** contain twig sub-templates.

An example `layout.twig` based on the default theme is available in `/docs/examples`.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

907d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ec3423875e52e3a4606f35fbcb183e2db721494aecb4de8cb0629a5271d9464?d=identicon)[denseflux](/maintainers/denseflux)

---

Top Contributors

[![denseflux](https://avatars.githubusercontent.com/u/2453698?v=4)](https://github.com/denseflux "denseflux (3 commits)")

---

Tags

omekaomeka-stemplatestwig

### Embed Badge

![Health badge](/badges/digihum-omeka-s-module-twig/health.svg)

```
[![Health](https://phpackages.com/badges/digihum-omeka-s-module-twig/health.svg)](https://phpackages.com/packages/digihum-omeka-s-module-twig)
```

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91292.0M315](/packages/twig-extra-bundle)[twig/intl-extra

A Twig extension for Intl

36663.2M221](/packages/twig-intl-extra)[rcrowe/twigbridge

Adds the power of Twig to Laravel

9105.9M50](/packages/rcrowe-twigbridge)[twig/string-extra

A Twig extension for Symfony String

21946.0M133](/packages/twig-string-extra)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

23018.5M55](/packages/twig-cssinliner-extra)[symfony/ux-twig-component

Twig components for Symfony

21814.8M162](/packages/symfony-ux-twig-component)

PHPackages © 2026

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