dev-master 2023-06-07 04:31 UTC

This package is auto-updated.

Last update: 2024-02-07 12:55:30 UTC



Yii Twig

Latest Stable Version Total Downloads Build status Code Coverage Mutation testing badge static analysis type-coverage psalm-level

The package provides various Twig extensions for Yii packages.


  • PHP 8.1 or higher.


The package could be installed with composer:

composer require yiisoft/yii-twig

General usage


Unit testing

The package is tested with PHPUnit. To run tests:


Mutation testing

The package tests are checked with Infection mutation framework with Infection Static Analysis Plugin. To run it:


Static analysis

The code is statically analyzed with Psalm. To run static analysis:


Code style

Use Rector to make codebase follow some specific rules or use either newest or any specific version of PHP:



Use ComposerRequireChecker to detect transitive Composer dependencies.


The Yii Twig is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Software.

Support the project

Open Collective

Follow updates

Official website Twitter Telegram Facebook Slack