Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yiisoft/yii2-twig

Yii 2 Twig extension.
https://github.com/yiisoft/yii2-twig

hacktoberfest template-engine twig yii yii2

Last synced: 3 days ago
JSON representation

Yii 2 Twig extension.

Awesome Lists containing this project

README

        





Twig Extension for Yii 2



This extension provides a `ViewRender` that would allow you to use [Twig](https://twig.symfony.com/) view template engine
with [Yii framework 2.0](https://www.yiiframework.com).

For license information check the [LICENSE](LICENSE.md)-file.

Documentation is at [docs/guide/README.md](docs/guide/README.md).

[![Latest Stable Version](https://poser.pugx.org/yiisoft/yii2-twig/v/stable.png)](https://packagist.org/packages/yiisoft/yii2-twig)
[![Total Downloads](https://poser.pugx.org/yiisoft/yii2-twig/downloads.png)](https://packagist.org/packages/yiisoft/yii2-twig)
[![Build Status](https://github.com/yiisoft/yii2-twig/workflows/build/badge.svg)](https://github.com/yiisoft/yii2-twig/actions)

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

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

```
php composer.phar require --prefer-dist yiisoft/yii2-twig
```

Usage
-----

To use this extension, configure it as described in [documentation](docs/guide/installation.md#configuring-application).

Requirements
------------

* PHP 7.2 - 7.4