PHPackages                             yiiext/twig-renderer - 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. yiiext/twig-renderer

ActiveYii-extension[Templating &amp; Views](/categories/templating)

yiiext/twig-renderer
====================

Twig renderer for the Yii Framework.

7081.6k↓48.6%30[8 PRs](https://github.com/yiiext/twig-renderer/pulls)1PHP

Since Jan 18Pushed 6y ago12 watchersCompare

[ Source](https://github.com/yiiext/twig-renderer)[ Packagist](https://packagist.org/packages/yiiext/twig-renderer)[ RSS](/packages/yiiext-twig-renderer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (1)

Twig view renderer
==================

[](#twig-view-renderer)

This extension allows you to use [Twig](http://twig.sensiolabs.org) templates in Yii.

Resources
---------

[](#resources)

- [This extension](https://github.com/yiiext/twig-renderer)
- [Twig](https://github.com/fabpot/twig)
- [Discuss](http://www.yiiframework.com/forum/index.php?/topic/4919-twig-view-renderer/)
- [Report a bug](https://github.com/yiiext/twig-renderer/issues)

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

[](#requirements)

- Yii 1.0 or above

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

[](#installation)

#### Installing manually

[](#installing-manually)

- Extract the release file under `vendor/Twig`.
- [Download](http://twig.sensiolabs.org/doc/installation.html#installing-from-the-tarball-release) and extract all Twig files from `fabpot-Twig-______.zip\fabpot-Twig-______\lib\Twig\` under `protected/vendor/Twig`.
- Add the following to your config file 'components' section:

```
