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

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

smarty/smarty
=============

Smarty - the compiling PHP template engine

v5.8.0(3mo ago)2.3k39.1M—1.4%707[82 issues](https://github.com/smarty-php/smarty/issues)[31 PRs](https://github.com/smarty-php/smarty/pulls)20LGPL-3.0PHPPHP ^7.2 || ^8.0CI passing

Since Oct 30Pushed yesterday178 watchersCompare

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

READMEChangelog (10)Dependencies (3)Versions (205)Used By (20)Security (15)

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.5.

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.

Sponsors
--------

[](#sponsors)

Smarty is sponsored by:

- Marc Laporte [@marclaporte](https://github.com/marclaporte)
- [Temma](https://github.com/Digicreon/Temma), the MVC framework based on Smarty

Thank you!

###  Health Score

83

↑

ExcellentBetter than 100% of packages

Maintenance92

Actively maintained with recent releases

Popularity79

Solid adoption and visibility

Community63

Healthy contributor diversity

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 76.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

Total

94

Last Release

92d ago

Major Versions

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

v4.5.6 → v5.5.22025-08-26

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/64910007e788d59e4252f6044b57118f068f457c91b2554f01cbbf2684dbb873?d=identicon)[rodneyrehm](/maintainers/rodneyrehm)

![](https://www.gravatar.com/avatar/4c7f205f0cf7ec98294a5061e32466bee0c5c60e81b3b4d51b53f86c43bdc1c7?d=identicon)[mohrt](/maintainers/mohrt)

![](https://www.gravatar.com/avatar/2af2a43df5390bb704e0aa6ada871b6d7188be4ef917f9226226108aa3f71a47?d=identicon)[uwetews](/maintainers/uwetews)

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

![](https://www.gravatar.com/avatar/73de8db1dd1370a977aa4f3940fcabba4e5bb486fb8639c040106f6222da8052?d=identicon)[wisskid](/maintainers/wisskid)

---

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 (305 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)")[![dusta](https://avatars.githubusercontent.com/u/9001348?v=4)](https://github.com/dusta "dusta (4 commits)")[![matsuo](https://avatars.githubusercontent.com/u/141021?v=4)](https://github.com/matsuo "matsuo (4 commits)")[![Visualq](https://avatars.githubusercontent.com/u/464429?v=4)](https://github.com/Visualq "Visualq (4 commits)")[![shadowwa](https://avatars.githubusercontent.com/u/3328149?v=4)](https://github.com/shadowwa "shadowwa (4 commits)")[![h-marumoto](https://avatars.githubusercontent.com/u/180140777?v=4)](https://github.com/h-marumoto "h-marumoto (3 commits)")[![Stricted](https://avatars.githubusercontent.com/u/4091731?v=4)](https://github.com/Stricted "Stricted (3 commits)")[![mfruehauf](https://avatars.githubusercontent.com/u/1560519?v=4)](https://github.com/mfruehauf "mfruehauf (2 commits)")[![atomiix](https://avatars.githubusercontent.com/u/2168836?v=4)](https://github.com/atomiix "atomiix (2 commits)")[![caugner](https://avatars.githubusercontent.com/u/495429?v=4)](https://github.com/caugner "caugner (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)")

---

Tags

phpsmartytemplating

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

This is a collection of ViewHelpers for performing rendering tasks that are not natively provided by TYPO3's Fluid templating engine.

1954.1M49](/packages/fluidtypo3-vhs)

PHPackages © 2026

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