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

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

ppi/smarty-module
=================

Smarty3 template engine module for PPI2

1.0(10y ago)22381[1 issues](https://github.com/ppi/ppi-smarty-module/issues)MITPHP

Since Aug 19Pushed 10y ago2 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

PPI Smarty Module
=================

[](#ppi-smarty-module)

[Smarty3](http://www.smarty.net/ "The compiling PHP template engine") template engine module for [PPI2](http://ppi.io/ "PPI Framework - The PHP Meta Framework!").

[![Build Status](https://camo.githubusercontent.com/a414d4fdf040a273710d2d99e531e090366a20f991334c848a00c0c970b462a0/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7070692f7070692d736d617274792d6d6f64756c652e706e67)](http://travis-ci.org/ppi/ppi-smarty-module)

Smarty
------

[](#smarty)

[![](https://camo.githubusercontent.com/a92cf4b72238d744f83e318338ee9112e6ab0a763d39248dd45d4b26140cb237/68747470733a2f2f7777772e6172766978652e636f6d2f696d616765732f6c616e64696e675f70616765732f736d617274795f686f7374696e672e706e67)](https://camo.githubusercontent.com/a92cf4b72238d744f83e318338ee9112e6ab0a763d39248dd45d4b26140cb237/68747470733a2f2f7777772e6172766978652e636f6d2f696d616765732f6c616e64696e675f70616765732f736d617274795f686f7374696e672e706e67)

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

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

[](#requirements)

- [PHP](http://php.net/ "PHP: Hypertext Preprocessor") 5.3.3 and up
- [PPI Framework 2](http://ppi.io/ "PPI Framework - The PHP Meta Framework!") (2.1.x)

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

[](#installation)

### 1. Install Composer

[](#1-install-composer)

If you don't have Composer yet, download it following the instructions on  or just run the following command:

```
curl -s http://getcomposer.org/installer | php
```

### 2. Add ppi/smarty-module to your composer.json and install

[](#2-add-ppismarty-module-to-your-composerjson-and-install)

```
$ php composer.phar require ppi/smarty-module dev-master
```

Composer will install the module to your project's `vendor/ppi` directory.

### 3. Enable the module

[](#3-enable-the-module)

Enable this module by editing `app/config/modules.yml`:

```
modules:
    - PPI\SmartyModule
    # ...
```

License
-------

[](#license)

This module is licensed under the MIT License. See the [LICENSE file](https://github.com/ppi/ppi-smarty-module/blob/master/LICENSE) for details.

Authors
-------

[](#authors)

- Paul Dragoonis -  ~ [twitter.com/dr4goonis](http://twitter.com/dr4goonis)
- Vítor Brandão -  ~ [twitter.com/noiselabs](http://twitter.com/noiselabs)

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

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

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

Bugs and feature requests are tracked on [GitHub](https://github.com/ppi/ppi-smarty-module/issues).

About PPI
---------

[](#about-ppi)

[![](https://camo.githubusercontent.com/6be34dae981d493a51557c4a1c0d31273bac44d149c967ba9b453dbee343bf8c/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f372f37642f5070692d6672616d65776f726b2d6c6f676f2e706e67)](https://camo.githubusercontent.com/6be34dae981d493a51557c4a1c0d31273bac44d149c967ba9b453dbee343bf8c/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f372f37642f5070692d6672616d65776f726b2d6c6f676f2e706e67)

> PPI is an open source PHP meta-framework. It has taken the good bits from Symfony2, ZendFramework2 &amp; Doctrine2 and combined them together to create a solid and very easy web application framework. It can be considered the boilerplate of PHP frameworks.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 80.8% 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

Unknown

Total

1

Last Release

3921d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9025c7b030862eabb8877bfe173b2358db04463e16d50703c6d9287e55fe5804?d=identicon)[dragoonis](/maintainers/dragoonis)

![](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 (21 commits)")[![dragoonis](https://avatars.githubusercontent.com/u/146321?v=4)](https://github.com/dragoonis "dragoonis (5 commits)")

---

Tags

ppitemplatingviewsmarty

### Embed Badge

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

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

###  Alternatives

[eftec/bladeone

The standalone version Blade Template Engine from Laravel in a single php file

8208.4M87](/packages/eftec-bladeone)[laminas/laminas-view

Fast and type safe HTML templating library with a flexible plugin system supporting multistep template composition

7526.3M230](/packages/laminas-laminas-view)[ytake/laravel-smarty

Smarty template engine for Laravel and Lumen

87401.6k](/packages/ytake-laravel-smarty)[noiselabs/smarty-bundle

This Symfony bundle provides integration for the Smarty3 template engine.

53194.4k1](/packages/noiselabs-smarty-bundle)[latrell/smarty

This package lets you run Smarty3 on Laravel5 elegantly.

127.0k](/packages/latrell-smarty)[eftec/bladeonehtml

The standalone version Blade Template Engine from Laravel in a single php file

1018.1k5](/packages/eftec-bladeonehtml)

PHPackages © 2026

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