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

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

zgcasas/smarty
==============

Smarty - the compiling PHP template engine

v4.1.2(2y ago)0150LGPL-3.0PHPPHP ^7.1 || ^8.0

Since Mar 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/zgcasas/smarty)[ Packagist](https://packagist.org/packages/zgcasas/smarty)[ Docs](https://smarty-php.github.io/smarty/)[ RSS](/packages/zgcasas-smarty/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (2)Versions (5)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 can be run with PHP 7.1 to PHP 8.1.

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

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 88.6% 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 ~329 days

Total

4

Last Release

900d ago

Major Versions

v1.0 → v4.1.02022-04-12

PHP version history (2 changes)v1.0PHP &gt;=5.2

v4.1.0PHP ^7.1 || ^8.0

### Community

Maintainers

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

---

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 (90 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)")[![zgcasas](https://avatars.githubusercontent.com/u/12964762?v=4)](https://github.com/zgcasas "zgcasas (5 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)")[![atomiix](https://avatars.githubusercontent.com/u/2168836?v=4)](https://github.com/atomiix "atomiix (2 commits)")[![pH-7](https://avatars.githubusercontent.com/u/1325411?v=4)](https://github.com/pH-7 "pH-7 (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)")[![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)")[![yonex](https://avatars.githubusercontent.com/u/4462818?v=4)](https://github.com/yonex "yonex (1 commits)")[![zonuexe](https://avatars.githubusercontent.com/u/822086?v=4)](https://github.com/zonuexe "zonuexe (1 commits)")[![bits4breakfast](https://avatars.githubusercontent.com/u/1160718?v=4)](https://github.com/bits4breakfast "bits4breakfast (1 commits)")[![Hunman](https://avatars.githubusercontent.com/u/7405480?v=4)](https://github.com/Hunman "Hunman (1 commits)")

---

Tags

templating

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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