Twig Extension for Yii 2


This extension provides a `ViewRender` that would allow you to use [Twig](http://twig.sensiolabs.org/) view template engine with [Yii framework 2.0](http://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://travis-ci.org/yiisoft/yii2-twig.svg?branch=master)](https://travis-ci.org/yiisoft/yii2-twig) Installation ------------ The preferred way to install this extension is through [composer](http://getcomposer.org/download/). Either run ``` php composer.phar require --prefer-dist yiisoft/yii2-twig ``` or add ``` "yiisoft/yii2-twig": "~2.0.0" ``` to the require section of your composer.json. Usage ----- To use this extension, configure it as described in [documentation](docs/guide/installation.md#configuring-application). Requirements ------------ * PHP 7.0.0 and higher