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

ActiveLibrary[Templating &amp; Views](/categories/templating)

kurogame/smarty
===============

Smarty - the compiling PHP template engine

3.1.38(5y ago)091LGPL-3.0PHPPHP &gt;=5.2

Since Oct 30Pushed 5y agoCompare

[ Source](https://github.com/sunanzhi/smarty)[ Packagist](https://packagist.org/packages/kurogame/smarty)[ Docs](http://www.smarty.net)[ RSS](/packages/kurogame-smarty/feed)WikiDiscussions master Synced 1w ago

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

Smarty 3 template engine
========================

[](#smarty-3-template-engine)

[smarty.net](https://www.smarty.net/)

[![Build Status](https://camo.githubusercontent.com/94839b08f2883e3e2149735fa0e4c3fe08be605891ee5e3bfdab0cf840b8fd0d/68747470733a2f2f7472617669732d63692e6f72672f736d617274792d7068702f736d617274792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/smarty-php/smarty)

Documentation
-------------

[](#documentation)

For documentation see [www.smarty.net/docs/en/](https://www.smarty.net/docs/en/)

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

[](#requirements)

Smarty can be run with PHP 5.2 to PHP 7.4.

Distribution repository
-----------------------

[](#distribution-repository)

> Smarty 3.1.28 introduces run time template inheritance

> Read the NEW\_FEATURES and INHERITANCE\_RELEASE\_NOTES file for recent extensions to Smarty 3.1 functionality

Smarty versions 3.1.11 or later are now on github and can be installed with Composer.

The "smarty/smarty" package will start at libs/.... subfolder.

To get the latest stable version of Smarty 3.1 use:

```
"require": {
    "smarty/smarty": "~3.1"
}
```

in your composer.json file.

To get the trunk version use:

```
"require": {
    "smarty/smarty": "~3.1@dev"
}
```

For a specific version use something like:

```
"require": {
    "smarty/smarty": "3.1.19"
}
```

PHPUnit test can be installed by corresponding composer entries like:

```
"require": {
    "smarty/smarty-phpunit": "3.1.19"
}
```

Similar applies for the lexer/parser generator.

```
"require": {
    "smarty/smarty-lexer": "3.1.19"
}
```

Or you could use:

```
"require": {
    "smarty/smarty-dev": "3.1.19"
}
```

Which is a wrapper to install all 3 packages.

Composer can also be used for Smarty2 versions 2.6.24 to 2.6.30.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 93.9% of commits — single point of failure

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 ~62 days

Recently: every ~129 days

Total

35

Last Release

2118d ago

Major Versions

v2.6.28 → v3.1.112014-10-31

v2.6.29 → v3.1.282015-12-13

v2.6.30 → v3.1.302016-08-07

v2.6.31 → v3.1.322018-04-24

### Community

Maintainers

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

---

Top Contributors

[![uwetews](https://avatars.githubusercontent.com/u/1246127?v=4)](https://github.com/uwetews "uwetews (1243 commits)")[![wisskid](https://avatars.githubusercontent.com/u/9041348?v=4)](https://github.com/wisskid "wisskid (22 commits)")[![glensc](https://avatars.githubusercontent.com/u/199095?v=4)](https://github.com/glensc "glensc (11 commits)")[![mohrt](https://avatars.githubusercontent.com/u/1020204?v=4)](https://github.com/mohrt "mohrt (9 commits)")[![AnrDaemon](https://avatars.githubusercontent.com/u/6532485?v=4)](https://github.com/AnrDaemon "AnrDaemon (7 commits)")[![dusta](https://avatars.githubusercontent.com/u/9001348?v=4)](https://github.com/dusta "dusta (4 commits)")[![Stricted](https://avatars.githubusercontent.com/u/4091731?v=4)](https://github.com/Stricted "Stricted (3 commits)")[![sunanzhi](https://avatars.githubusercontent.com/u/14371358?v=4)](https://github.com/sunanzhi "sunanzhi (3 commits)")[![jplusc](https://avatars.githubusercontent.com/u/20580948?v=4)](https://github.com/jplusc "jplusc (1 commits)")[![kfrijters](https://avatars.githubusercontent.com/u/1122323?v=4)](https://github.com/kfrijters "kfrijters (1 commits)")[![logbon72](https://avatars.githubusercontent.com/u/302751?v=4)](https://github.com/logbon72 "logbon72 (1 commits)")[![matks](https://avatars.githubusercontent.com/u/3830050?v=4)](https://github.com/matks "matks (1 commits)")[![mmerian](https://avatars.githubusercontent.com/u/167871?v=4)](https://github.com/mmerian "mmerian (1 commits)")[![shpik-kr](https://avatars.githubusercontent.com/u/12602773?v=4)](https://github.com/shpik-kr "shpik-kr (1 commits)")[![simivar](https://avatars.githubusercontent.com/u/828020?v=4)](https://github.com/simivar "simivar (1 commits)")[![SvenRtbg](https://avatars.githubusercontent.com/u/416600?v=4)](https://github.com/SvenRtbg "SvenRtbg (1 commits)")[![thewalkingcoder](https://avatars.githubusercontent.com/u/10476280?v=4)](https://github.com/thewalkingcoder "thewalkingcoder (1 commits)")[![tinogo](https://avatars.githubusercontent.com/u/3515498?v=4)](https://github.com/tinogo "tinogo (1 commits)")[![vadimkuragkovskiy](https://avatars.githubusercontent.com/u/394450?v=4)](https://github.com/vadimkuragkovskiy "vadimkuragkovskiy (1 commits)")[![wudi](https://avatars.githubusercontent.com/u/3753615?v=4)](https://github.com/wudi "wudi (1 commits)")

---

Tags

templating

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[twig/twig

Twig, the flexible, fast, and secure template language for PHP

8.4k443.2M5.8k](/packages/twig-twig)[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[smarty/smarty

Smarty - the compiling PHP template engine

2.3k39.1M395](/packages/smarty-smarty)[timber/timber

Create WordPress themes with beautiful OOP code and the Twig Template Engine

5.7k3.4M111](/packages/timber-timber)[league/plates

Plates, the native PHP template system that's fast, easy to use and easy to extend.

1.5k5.9M232](/packages/league-plates)[eftec/bladeone

The standalone version Blade Template Engine from Laravel in a single php file

8208.4M87](/packages/eftec-bladeone)

PHPackages © 2026

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