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

AbandonedArchivedPhile-plugin

phile/template-smarty
=====================

Use smarty template parser for PhileCMS

010PHP

Since Mar 24Pushed 8y ago2 watchersCompare

[ Source](https://github.com/PhileCMS/phileTemplateSmarty)[ Packagist](https://packagist.org/packages/phile/template-smarty)[ RSS](/packages/phile-template-smarty/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

**NOTE**: This repository is not maintained anymore and archived.

phileTemplateSmarty
===================

[](#philetemplatesmarty)

[Smarty](http://www.smarty.net/docs/en/)(version 3.1.15 included) template parser for [PhileCMS](https://github.com/PhileCMS/Phile)

### 1.1 Installation (composer)

[](#11-installation-composer)

```
php composer.phar require phile/template-smarty:*

```

### 1.2 Installation (Download)

[](#12-installation-download)

- Install the latest version of [Phile](https://github.com/PhileCMS/Phile)
- Clone this repo into `plugins/phile/templateSmarty`

### 2. Activation

[](#2-activation)

After you have installed the plugin. You need to add the following line to your `config.php` file:

```
$config['plugins']['phile\\templateSmarty'] = array('active' => true);

```

Modify your `config.php` file:

```
$config['plugins'] = array(
  // disable the Twig template engine
  'phile\\templateTwig' => array('active' => false),
  // enable the Smarty template engine
  'phile\\templateSmarty' => array('active' => true)
);
```

### Disclaimer

[](#disclaimer)

Due to the nature of the Page model in Phile, and the fact that Smarty doesn't like objects, there are some slightly different properties available to the `pages` array.

- title
- url
- content
- meta

This covers most of the things that the `pages` array covers in Twig.

### Not a drop in replacement for Twig

[](#not-a-drop-in-replacement-for-twig)

If you have not used Smarty before, please read the [docs](http://www.smarty.net/docs/en/) because there are a few differences in syntax, and philosophy, over Twig.

I have included an index.tpl file to show how to recreate the index page from the default theme.

### Why use this over Twig

[](#why-use-this-over-twig)

- You prefer Smarty syntax/style/philosophy
- Smarty has a large community than Twig (Smarty is older)
- Some argue Smarty is faster than Twig

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

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

---

Top Contributors

[![NeoBlack](https://avatars.githubusercontent.com/u/1128085?v=4)](https://github.com/NeoBlack "NeoBlack (4 commits)")[![james2doyle](https://avatars.githubusercontent.com/u/1425304?v=4)](https://github.com/james2doyle "james2doyle (3 commits)")[![Schlaefer](https://avatars.githubusercontent.com/u/143224?v=4)](https://github.com/Schlaefer "Schlaefer (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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