PHPackages                             theopera/twig-adapter - 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. theopera/twig-adapter

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

theopera/twig-adapter
=====================

v1.3(6y ago)079MITPHP

Since Sep 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/theopera/twig-adapter)[ Packagist](https://packagist.org/packages/theopera/twig-adapter)[ RSS](/packages/theopera-twig-adapter/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (3)Versions (5)Used By (0)

The Opera Twig Adapter
======================

[](#the-opera-twig-adapter)

[![Build Status](https://camo.githubusercontent.com/e49348d9bfa724699117f7b96669bfc9c549f73d8142976d30fd1017a154afe2/68747470733a2f2f7472617669732d63692e6f72672f7468656f706572612f747769672d616461707465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/theopera/framework)

This adapter allows you to easily use the Twig template engine for rendering your views.

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

[](#installation)

Run `composer require theopera/twig-adapter` to get a copy of the adapter. To make the adapter active, add the following code, to the `MyContext` class.

```
public function getTemplateEngine() : RenderInterface
{
    if($this->render === null){
        $this->render = new TwigAdapter($this);
    }

    return $this->render;
}
```

This will override the default PhpEngine template engine. Be sure to check your import statements.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

Every ~354 days

Total

4

Last Release

2516d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13813986?v=4)[Marc Heuker of Hoek](/maintainers/marchoh)[@marchoh](https://github.com/marchoh)

---

Top Contributors

[![marchoh](https://avatars.githubusercontent.com/u/13813986?v=4)](https://github.com/marchoh "marchoh (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/theopera-twig-adapter/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)

PHPackages © 2026

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