PHPackages                             jc-it/yii2-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. jc-it/yii2-twig

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

jc-it/yii2-twig
===============

Helpers for working with Twig

v2.0.0(1y ago)064MITPHPPHP &gt;=8.3CI failing

Since Feb 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/JC-IT/yii2-twig)[ Packagist](https://packagist.org/packages/jc-it/yii2-twig)[ RSS](/packages/jc-it-yii2-twig/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (10)Versions (5)Used By (0)

Helpers for working with Twig
=============================

[](#helpers-for-working-with-twig)

[![codecov](https://camo.githubusercontent.com/ed0a8d05cf6e4d03616022cfa52940896af6d8fe046aebafb9fa4f30377a5926/68747470733a2f2f636f6465636f762e696f2f67682f6a632d69742f796969322d747769672f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/jc-it/yii2-twig)[![Continous integration](https://github.com/jc-it/yii2-twig/actions/workflows/ci.yaml/badge.svg)](https://github.com/jc-it/yii2-twig/actions/workflows/ci.yaml)[![Packagist Total Downloads](https://camo.githubusercontent.com/a8f80a5af11be15bbee527e36993743dfb501e28bcff6563786117ea3c26200a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a632d69742f796969322d74776967)](https://camo.githubusercontent.com/a8f80a5af11be15bbee527e36993743dfb501e28bcff6563786117ea3c26200a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a632d69742f796969322d74776967)[![Packagist Monthly Downloads](https://camo.githubusercontent.com/6d687b6c679a2a27756abd2c39df515cbec6ee6de6e4c3c0f6add22cad831424/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6a632d69742f796969322d74776967)](https://camo.githubusercontent.com/6d687b6c679a2a27756abd2c39df515cbec6ee6de6e4c3c0f6add22cad831424/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6a632d69742f796969322d74776967)[![GitHub tag (latest by date)](https://camo.githubusercontent.com/254230a0baac08576856a7f7611fa2e68e67fa56aa7a5fe74b829ba087cd29e3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f6a632d69742f796969322d74776967)](https://camo.githubusercontent.com/254230a0baac08576856a7f7611fa2e68e67fa56aa7a5fe74b829ba087cd29e3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f6a632d69742f796969322d74776967)[![Packagist Version](https://camo.githubusercontent.com/edeeeb550b3b223728902bbe6b6273608426aa0e47d3ddf03587cfbb77b75d16/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a632d69742f796969322d74776967)](https://camo.githubusercontent.com/edeeeb550b3b223728902bbe6b6273608426aa0e47d3ddf03587cfbb77b75d16/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a632d69742f796969322d74776967)

Widgets, validators and interfaces to help working with [Twig](https://twig.symfony.com/doc/3.x/).

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ composer require jc-it/yii2-twig
```

or add

```
"jc-it/yii2-twig": "^"

```

to the `require` section of your `composer.json` file.

TODO
----

[](#todo)

- Add tests

Credits
-------

[](#credits)

- [Joey Claessen](https://github.com/joester89)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance47

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

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 ~388 days

Total

4

Last Release

397d ago

Major Versions

v1.1.1 → v2.0.02025-04-11

PHP version history (2 changes)v1.0.0PHP &gt;=8.0

v2.0.0PHP &gt;=8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/88359ebe0456645a614e563dfbf0dd025b69ef57221050cb9eb31e3eef4dd0f9?d=identicon)[joester89](/maintainers/joester89)

---

Top Contributors

[![joester89](https://avatars.githubusercontent.com/u/9624366?v=4)](https://github.com/joester89 "joester89 (7 commits)")

###  Code Quality

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jc-it-yii2-twig/health.svg)

```
[![Health](https://phpackages.com/badges/jc-it-yii2-twig/health.svg)](https://phpackages.com/packages/jc-it-yii2-twig)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[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)[twig/string-extra

A Twig extension for Symfony String

21946.0M133](/packages/twig-string-extra)[symfony/ux-twig-component

Twig components for Symfony

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

A Twig extension for the inky email templating engine

16612.5M47](/packages/twig-inky-extra)

PHPackages © 2026

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