PHPackages                             pug/yii2 - 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. pug/yii2

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

pug/yii2
========

Yii2 Pug (ex Jade) extension

1.2.0(5y ago)811.1k↓50%1MITPHPPHP &gt;=5.4.0

Since Dec 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pug-php/pug-yii2)[ Packagist](https://packagist.org/packages/pug/yii2)[ GitHub Sponsors](https://github.com/kylekatarnls)[ Fund](https://opencollective.com/pug-php)[ RSS](/packages/pug-yii2/feed)WikiDiscussions master Synced 1mo ago

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

Yii 2 Pug (ex Jade) extension
=============================

[](#yii-2-pug-ex-jade-extension)

This extension provides a view renderer for [Pug](https://pugjs.org/) templates for [Yii framework 2.0](http://www.yiiframework.com/) applications.

[![License](https://camo.githubusercontent.com/fb6476410aadf45b4d82e942a1e75e52ae5ce9cc99a25d5a26fc473a571af396/68747470733a2f2f706f7365722e707567782e6f72672f7075672f796969322f6c6963656e73652e737667)](https://packagist.org/packages/pug/yii2)[![Latest Stable Version](https://camo.githubusercontent.com/1045e5ae3006210ca8aa1b0870ee0f5e36c86e93c544753c9072b0a293487486/68747470733a2f2f706f7365722e707567782e6f72672f7075672f796969322f762f737461626c652e737667)](https://packagist.org/packages/pug/yii2)[![Travis CI Build Status](https://camo.githubusercontent.com/a81aa17192306a9c71c58cd17efac9fb0c7977371d788a5dc1440eeb18c3412a/68747470733a2f2f7472617669732d63692e6f72672f7075672d7068702f7075672d796969322e737667)](https://travis-ci.org/pug-php/pug-yii2)[![Test Coverage](https://camo.githubusercontent.com/531f84849ca9fc68ca8053a9fcd1c20d41d9ccfc16ac843131d6c43e74c78efd/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7075672d7068702f7075672d796969322f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/pug-php/pug-yii2/coverage)[![Issue Count](https://camo.githubusercontent.com/392caa22a5230768e661a0124012416b2223c0999cab1d24bc7aea78c4e64390/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7075672d7068702f7075672d796969322f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/pug-php/pug-yii2)[![StyleCI](https://camo.githubusercontent.com/529c6f089d20a50fde9a1231e42c00408d6f58897a6b4b170f2e237e2be144f5/68747470733a2f2f7374796c6563692e696f2f7265706f732f3131333630303131302f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/113600110)

Support
-------

[](#support)

- [GutHub issues](https://github.com/pug-php/pug-yii2/issues)

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

[](#installation)

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

Either run

```
composer require pug/yii2
```

or add

```
"pug/yii2": "^1.0",

```

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

Configure
---------

[](#configure)

```
