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

ActiveYii2-extension

kurogame/yii2-smarty
====================

The Smarty integration for the Yii framework

2.0.10(5y ago)03BSD-3-ClausePHP

Since Nov 25Pushed 5y agoCompare

[ Source](https://github.com/sunanzhi/yii2-smarty)[ Packagist](https://packagist.org/packages/kurogame/yii2-smarty)[ GitHub Sponsors](https://github.com/yiisoft)[ Fund](https://opencollective.com/yiisoft)[ RSS](/packages/kurogame-yii2-smarty/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (4)Versions (15)Used By (0)

 [ ![](https://camo.githubusercontent.com/1880403279539481e2fe990e273d4a29161645b7b2c2c3137a583155edaac624/68747470733a2f2f7777772e736d617274792e6e65742f696d616765732f6c6f676f2e706e67) ](https://www.smarty.net/)

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

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

This extension provides a `ViewRender` that would allow you to use [Smarty](http://www.smarty.net/) 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://camo.githubusercontent.com/3505c9daba75692363f1a7bdf96ec7bdd806808ef7651024306410fb7e393265/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f796969322d736d617274792f762f737461626c652e706e67)](https://packagist.org/packages/yiisoft/yii2-smarty)[![Total Downloads](https://camo.githubusercontent.com/b83dc21ed272ae00df0068cc4938c2201aef0af093928b65b02d94306c22b54a/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f796969322d736d617274792f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yiisoft/yii2-smarty)[![Build Status](https://camo.githubusercontent.com/9e1f40b0ad76b511eabe021d9044890dce7d6d917fdb2531acd9ddde1a893522/68747470733a2f2f7472617669732d63692e636f6d2f796969736f66742f796969322d736d617274792e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/yiisoft/yii2-smarty)

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

[](#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-smarty

```

or add

```
"yiisoft/yii2-smarty": "~2.0.0"
```

to the require section of your composer.json.

Note that the smarty composer package is distributed using subversion so you may need to install subversion.

Usage
-----

[](#usage)

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',
                ],
            ],
        ],
    ],
];
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Every ~187 days

Recently: every ~307 days

Total

14

Last Release

2112d ago

### Community

Maintainers

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

---

Top Contributors

[![qiangxue](https://avatars.githubusercontent.com/u/993322?v=4)](https://github.com/qiangxue "qiangxue (1902 commits)")[![cebe](https://avatars.githubusercontent.com/u/189796?v=4)](https://github.com/cebe "cebe (741 commits)")[![samdark](https://avatars.githubusercontent.com/u/47294?v=4)](https://github.com/samdark "samdark (655 commits)")[![klimov-paul](https://avatars.githubusercontent.com/u/1482054?v=4)](https://github.com/klimov-paul "klimov-paul (322 commits)")[![creocoder](https://avatars.githubusercontent.com/u/896494?v=4)](https://github.com/creocoder "creocoder (148 commits)")[![resurtm](https://avatars.githubusercontent.com/u/100198?v=4)](https://github.com/resurtm "resurtm (123 commits)")[![Ragazzo](https://avatars.githubusercontent.com/u/1748844?v=4)](https://github.com/Ragazzo "Ragazzo (75 commits)")[![lucianobaraglia](https://avatars.githubusercontent.com/u/374554?v=4)](https://github.com/lucianobaraglia "lucianobaraglia (44 commits)")[![suralc](https://avatars.githubusercontent.com/u/730039?v=4)](https://github.com/suralc "suralc (42 commits)")[![pmoust](https://avatars.githubusercontent.com/u/2493339?v=4)](https://github.com/pmoust "pmoust (36 commits)")[![schmunk42](https://avatars.githubusercontent.com/u/649031?v=4)](https://github.com/schmunk42 "schmunk42 (26 commits)")[![slavcodev](https://avatars.githubusercontent.com/u/757721?v=4)](https://github.com/slavcodev "slavcodev (20 commits)")[![LarryUllman](https://avatars.githubusercontent.com/u/1674823?v=4)](https://github.com/LarryUllman "LarryUllman (18 commits)")[![kartik-v](https://avatars.githubusercontent.com/u/3592619?v=4)](https://github.com/kartik-v "kartik-v (16 commits)")[![bwoester](https://avatars.githubusercontent.com/u/309565?v=4)](https://github.com/bwoester "bwoester (12 commits)")[![crtlib](https://avatars.githubusercontent.com/u/4428231?v=4)](https://github.com/crtlib "crtlib (12 commits)")[![tarasio](https://avatars.githubusercontent.com/u/1010578?v=4)](https://github.com/tarasio "tarasio (12 commits)")[![gevik](https://avatars.githubusercontent.com/u/434535?v=4)](https://github.com/gevik "gevik (10 commits)")[![gonimar](https://avatars.githubusercontent.com/u/756571?v=4)](https://github.com/gonimar "gonimar (9 commits)")[![sensorario](https://avatars.githubusercontent.com/u/820248?v=4)](https://github.com/sensorario "sensorario (9 commits)")

---

Tags

yii2renderersmarty

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[yiisoft/yii2-smarty

The Smarty integration for the Yii framework

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

The Twig integration for the Yii framework

1431.9M32](/packages/yiisoft-yii2-twig)

PHPackages © 2026

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