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

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

artemsuv/smarty
===============

Smarty - the compiling PHP template engine

v3.1.32.1(7y ago)074LGPL-3.0PHPPHP &gt;=5.2

Since Oct 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/artemsuv/smarty)[ Packagist](https://packagist.org/packages/artemsuv/smarty)[ Docs](http://www.smarty.net)[ RSS](/packages/artemsuv-smarty/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (32)Used By (0)

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

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

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

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

[](#documentation)

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

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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 97.7% 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 ~48 days

Recently: every ~189 days

Total

30

Last Release

2806d 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://www.gravatar.com/avatar/99d0426da01c3b85ce5111a154b3b92286d8a2d735f557ecab2a9b5687fe0e6d?d=identicon)[artemsuv](/maintainers/artemsuv)

---

Top Contributors

[![uwetews](https://avatars.githubusercontent.com/u/1246127?v=4)](https://github.com/uwetews "uwetews (1221 commits)")[![glensc](https://avatars.githubusercontent.com/u/199095?v=4)](https://github.com/glensc "glensc (10 commits)")[![dusta](https://avatars.githubusercontent.com/u/9001348?v=4)](https://github.com/dusta "dusta (3 commits)")[![Stricted](https://avatars.githubusercontent.com/u/4091731?v=4)](https://github.com/Stricted "Stricted (3 commits)")[![logbon72](https://avatars.githubusercontent.com/u/302751?v=4)](https://github.com/logbon72 "logbon72 (1 commits)")[![mmerian](https://avatars.githubusercontent.com/u/167871?v=4)](https://github.com/mmerian "mmerian (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)")[![wudi](https://avatars.githubusercontent.com/u/3753615?v=4)](https://github.com/wudi "wudi (1 commits)")[![yonex](https://avatars.githubusercontent.com/u/4462818?v=4)](https://github.com/yonex "yonex (1 commits)")[![aivus](https://avatars.githubusercontent.com/u/1021703?v=4)](https://github.com/aivus "aivus (1 commits)")[![zonuexe](https://avatars.githubusercontent.com/u/822086?v=4)](https://github.com/zonuexe "zonuexe (1 commits)")[![a-shpota](https://avatars.githubusercontent.com/u/3342566?v=4)](https://github.com/a-shpota "a-shpota (1 commits)")[![dan-abc](https://avatars.githubusercontent.com/u/195538?v=4)](https://github.com/dan-abc "dan-abc (1 commits)")[![kfrijters](https://avatars.githubusercontent.com/u/1122323?v=4)](https://github.com/kfrijters "kfrijters (1 commits)")

---

Tags

templating

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/artemsuv-smarty/health.svg)](https://phpackages.com/packages/artemsuv-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.1M394](/packages/smarty-smarty)[timber/timber

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

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

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

1.5k5.9M231](/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)
