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

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

noiselabs/smarty
================

Smarty PHP Template Engine (patched for SmartyBundle)

v3.1.16(12y ago)114.2k1LGPL-3.0PHPPHP &gt;=5.2

Since Jul 2Pushed 12y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (9)Used By (0)

[Smarty](http://www.smarty.net/ "The compiling PHP template engine") PHP Template Engine
========================================================================================

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

About this repository
---------------------

[](#about-this-repository)

This repository was created from the [Smarty svn sources](https://smarty-php.googlecode.com/svn) using the [svn2git](https://github.com/nirvdrum/svn2git) tool:

```
$ svn2git https://smarty-php.googlecode.com/svn -v

```

and is updated at each Smarty release with:

```
$ svn2git --rebase -v

```

On top of the Smarty code we add some patches to make it work better with the [SmartyBundle](https://smartybundle.readthedocs.org/) library.

What is Smarty?
---------------

[](#what-is-smarty)

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. This implies that PHP code is application logic, and is separated from the presentation.

Some of Smarty's features:

- It is extremely fast.
- It is efficient since the PHP parser does the dirty work.
- No template parsing overhead, only compiles once.
- It is smart about recompiling only the template files that have changed.
- You can easily create your own custom functions and variable modifiers, so the template language is extremely extensible.
- Configurable template `{delimiter}` tag syntax, so you can use `{$foo}, {{$foo}}, `, etc.
- The `{if}..{elseif}..{else}..{/if}` constructs are passed to the PHP parser, so the `{if...}` expression syntax can be as simple or as complex an evaluation as you like.
- Allows unlimited nesting of sections, if's etc.
- Built-in caching support.
- Arbitrary template sources.
- Template Inheritance for easy management of template content.
- Plugin architecture.

See the [Smarty3 Manual](http://www.smarty.net/docs/en/) for other features and information on it's syntax, configuration and installation.

What is SmartyBundle?
---------------------

[](#what-is-smartybundle)

SmartyBundle is a module that allows the usage of the Smarty template engine in the [Symfony2](http://www.symfony.com/ "High Performance PHP Framework for Web Development") and [PPI2](http://www.ppi.io/ "PPI Framework") frameworks.

Authors
-------

[](#authors)

### Smarty authors

[](#smarty-authors)

### noiselabs/smarty authors

[](#noiselabssmarty-authors)

Vítor Brandão -  ~ [twitter.com/noiselabs](http://twitter.com/noiselabs) ~ [www.noiselabs.org](http://noiselabs.org)

See also the list of [contributors](https://github.com/noiselabs/smarty/contributors) who participated in this project.

Submitting bugs and feature requests
------------------------------------

[](#submitting-bugs-and-feature-requests)

Smarty issues should be reported to its [own bugtracker on GoogleCode](https://code.google.com/p/smarty-php/issues/list).

Specific issues regarding this repository may be reported here on [GitHub](https://github.com/noiselabs/smarty/issues).

[![Bitdeli Badge](https://camo.githubusercontent.com/613fb2f6ffc6e458b4be58c051aec133e35e607fd116a5421172f0770b5f2b92/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f6e6f6973656c6162732f736d617274792f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 76.9% 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 ~106 days

Recently: every ~112 days

Total

6

Last Release

4527d ago

### Community

Maintainers

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

---

Top Contributors

[![vitorbrandao](https://avatars.githubusercontent.com/u/109226?v=4)](https://github.com/vitorbrandao "vitorbrandao (10 commits)")[![canberkol](https://avatars.githubusercontent.com/u/4354957?v=4)](https://github.com/canberkol "canberkol (3 commits)")

---

Tags

templating

### Embed Badge

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

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