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

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

fits/smarty
===========

Smarty - the compiling PHP template engine

v5.4.3(1y ago)0271LGPL-3.0PHP ^7.2 || ^8.0

Since Oct 30Pushed 11mo agoCompare

[ Source](https://github.com/alexskin/smarty)[ Packagist](https://packagist.org/packages/fits/smarty)[ Docs](https://smarty-php.github.io/smarty/)[ RSS](/packages/fits-smarty/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (190)Used By (0)

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

[](#smarty-template-engine)

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic.

[![CI](https://github.com/smarty-php/smarty/workflows/CI/badge.svg)](https://github.com/smarty-php/smarty/workflows/CI/badge.svg)

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

[](#documentation)

Read the [documentation](https://smarty-php.github.io/smarty/) to find out how to use it.

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

[](#requirements)

Smarty v5 can be run with PHP 7.2 to PHP 8.4.

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

[](#installation)

Smarty versions 3.1.11 or later can be installed with [Composer](https://getcomposer.org/).

To get the latest stable version of Smarty use:

```
composer require smarty/smarty
```

More in the [Getting Started](./docs/getting-started.md) section of the docs.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance46

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity87

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 78.1% 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 ~44 days

Recently: every ~32 days

Total

85

Last Release

512d ago

Major Versions

v4.5.1 → v5.0.02024-03-25

v4.5.2 → v5.1.02024-04-22

v4.5.3 → v5.3.02024-05-30

v4.5.4 → v5.4.12024-08-29

v4.5.5 → v5.4.32024-12-23

PHP version history (4 changes)v2.6.24PHP &gt;=5.2

v4.0.0-rc.0PHP ^7.1 || ^8.0

v3.1.47PHP ^5.2 || ^7.0

v5.0.0-rc1PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/d13e5179689dbd0d21cc8ca6c673f607fdeb3ebcdcf950da7ac22947456698b4?d=identicon)[alexskin](/maintainers/alexskin)

---

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 (268 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)")[![thirsch](https://avatars.githubusercontent.com/u/1055937?v=4)](https://github.com/thirsch "thirsch (6 commits)")[![matsuo](https://avatars.githubusercontent.com/u/141021?v=4)](https://github.com/matsuo "matsuo (4 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)")[![shadowwa](https://avatars.githubusercontent.com/u/3328149?v=4)](https://github.com/shadowwa "shadowwa (3 commits)")[![Visualq](https://avatars.githubusercontent.com/u/464429?v=4)](https://github.com/Visualq "Visualq (3 commits)")[![mfruehauf](https://avatars.githubusercontent.com/u/1560519?v=4)](https://github.com/mfruehauf "mfruehauf (2 commits)")[![pH-7](https://avatars.githubusercontent.com/u/1325411?v=4)](https://github.com/pH-7 "pH-7 (2 commits)")[![eltociear](https://avatars.githubusercontent.com/u/22633385?v=4)](https://github.com/eltociear "eltociear (2 commits)")[![Hunman](https://avatars.githubusercontent.com/u/7405480?v=4)](https://github.com/Hunman "Hunman (2 commits)")[![IT-Experte](https://avatars.githubusercontent.com/u/12892027?v=4)](https://github.com/IT-Experte "IT-Experte (2 commits)")[![JonisoftGermany](https://avatars.githubusercontent.com/u/5918651?v=4)](https://github.com/JonisoftGermany "JonisoftGermany (2 commits)")[![liborm85](https://avatars.githubusercontent.com/u/1298652?v=4)](https://github.com/liborm85 "liborm85 (2 commits)")[![marclaporte](https://avatars.githubusercontent.com/u/1004261?v=4)](https://github.com/marclaporte "marclaporte (2 commits)")[![ssigwart](https://avatars.githubusercontent.com/u/1426848?v=4)](https://github.com/ssigwart "ssigwart (2 commits)")

---

Tags

templating

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[twig/twig

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

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

Smarty - the compiling PHP template engine

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

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[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)
