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

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

buonjg/smarty
=============

Smarty - the compiling PHP template engine

v3.1.28(10y ago)032LGPL-3.0PHPPHP &gt;=5.2

Since Oct 30Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (26)Used By (0)

\#Smarty 3 template engine ##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.28

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 98.4% 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 ~19 days

Recently: every ~45 days

Total

23

Last Release

3799d ago

Major Versions

v2.6.28 → v3.1.112014-10-31

v2.6.29 → v3.1.282015-12-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e9c525335e66d534a0c4c6b421a67fe7b19525b5bad9f6fb1ff4bc331ad75b0?d=identicon)[BUONJG](/maintainers/BUONJG)

---

Top Contributors

[![uwetews](https://avatars.githubusercontent.com/u/1246127?v=4)](https://github.com/uwetews "uwetews (842 commits)")[![glensc](https://avatars.githubusercontent.com/u/199095?v=4)](https://github.com/glensc "glensc (5 commits)")[![Stricted](https://avatars.githubusercontent.com/u/4091731?v=4)](https://github.com/Stricted "Stricted (3 commits)")[![BUONJG](https://avatars.githubusercontent.com/u/898114?v=4)](https://github.com/BUONJG "BUONJG (2 commits)")[![yonex](https://avatars.githubusercontent.com/u/4462818?v=4)](https://github.com/yonex "yonex (1 commits)")[![dan-abc](https://avatars.githubusercontent.com/u/195538?v=4)](https://github.com/dan-abc "dan-abc (1 commits)")[![mmerian](https://avatars.githubusercontent.com/u/167871?v=4)](https://github.com/mmerian "mmerian (1 commits)")[![aivus](https://avatars.githubusercontent.com/u/1021703?v=4)](https://github.com/aivus "aivus (1 commits)")

---

Tags

templating

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/buonjg-smarty/health.svg)](https://phpackages.com/packages/buonjg-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.6M290](/packages/mustache-mustache)[smarty/smarty

Smarty - the compiling PHP template engine

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

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

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

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

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