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

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

yiistudio/yii2-smarty
=====================

The Smarty integration for the Yii framework

2.0.0-beta(11y ago)010BSD-3-ClausePHP

Since Aug 7Pushed 11y ago1 watchersCompare

[ Source](https://github.com/yiistudio/yii2-smarty)[ Packagist](https://packagist.org/packages/yiistudio/yii2-smarty)[ RSS](/packages/yiistudio-yii2-smarty/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Smarty Extension for Yii 2
==========================

[](#smarty-extension-for-yii-2)

This extension provides a `ViewRender` that would allow you to use Smarty view template engine.

To use this extension, simply add the following code in your application configuration:

```
return [
    //....
    'components' => [
        'view' => [
            'renderers' => [
                'tpl' => [
                    'class' => 'yii\smarty\ViewRenderer',
                    //'cachePath' => '@runtime/Smarty/cache',
                ],
            ],
        ],
    ],
];
```

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist yiistudio/yii2-smarty "*"

```

or add

```
"yiistudio/yii2-smarty": "*"
```

to the require section of your composer.json.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4297d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7935077?v=4)[yiistudio](/maintainers/yiistudio)[@yiistudio](https://github.com/yiistudio)

---

Tags

yii2renderersmarty

### Embed Badge

![Health badge](/badges/yiistudio-yii2-smarty/health.svg)

```
[![Health](https://phpackages.com/badges/yiistudio-yii2-smarty/health.svg)](https://phpackages.com/packages/yiistudio-yii2-smarty)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[yiisoft/yii2-smarty

The Smarty integration for the Yii framework

74371.8k15](/packages/yiisoft-yii2-smarty)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
