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

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

robloach/templating-smarty
==========================

Symfony Templating Component support for Smarty.

06PHP

Since Nov 4Pushed 11y ago1 watchersCompare

[ Source](https://github.com/RobLoach/templating-smarty)[ Packagist](https://packagist.org/packages/robloach/templating-smarty)[ RSS](/packages/robloach-templating-smarty/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Templating Smarty
=================

[](#templating-smarty)

[![Build Status](https://camo.githubusercontent.com/e61e1ff64431633b7ef2d3490877c5ca5283bf30734ea18890090de010c41882/68747470733a2f2f7472617669732d63692e6f72672f526f624c6f6163682f74656d706c6174696e672d736d617274792e706e67)](https://travis-ci.org/RobLoach/templating-smarty)[![Total Downloads](https://camo.githubusercontent.com/92578c61ddc69bff24fc1d53f3ff63cd00400a817d256d290abe0df8001deb02/68747470733a2f2f706f7365722e707567782e6f72672f726f626c6f6163682f74656d706c6174696e672d736d617274792f646f776e6c6f6164732e706e67)](https://packagist.org/packages/robloach/templating-smarty)[![Latest Stable Version](https://camo.githubusercontent.com/0f29adffbad9d1d295628327ec23c88810b5cb334fbb7ec285592a7a95efe2aa/68747470733a2f2f706f7365722e707567782e6f72672f726f626c6f6163682f74656d706c6174696e672d736d617274792f762f737461626c652e706e67)](https://packagist.org/packages/robloach/templating-extras)

[Smarty](http://www.smarty.net) support for [Symfony's Templating component](http://symfony.com/doc/current/components/templating/introduction.html).

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

[](#installation)

*Templating Smarty* can be installed with [Composer](http://getcomposer.org)by adding it as a dependency to your project's composer.json file.

```
{
    "require": {
        "robloach/templating-smarty": "*"
    }
}
```

Please refer to [Composer's documentation](https://github.com/composer/composer/blob/master/doc/00-intro.md#introduction)for more detailed installation and usage instructions.

Usage
-----

[](#usage)

Instantiate the engine:

```
use RobLoach\TemplatingExtras\SmartyEngine;

$parser = new Symfony\Component\Templating\TemplateNameParser();
$templating = new SmartyEngine($parser, array(
    'template_dir' => '.'
));

echo $templating->render('hello.smarty', array('firstname' => 'Fabien'));
```

#### hello.smarty

[](#hellosmarty)

```
Hello, {$firstname}!
```

See [Symfony's documentation on Templating](http://symfony.com/doc/current/components/templating/introduction.html#usage) for more information about using the different template engines available.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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://avatars.githubusercontent.com/u/25086?v=4)[Rob Loach](/maintainers/RobLoach)[@RobLoach](https://github.com/RobLoach)

---

Top Contributors

[![RobLoach](https://avatars.githubusercontent.com/u/25086?v=4)](https://github.com/RobLoach "RobLoach (9 commits)")

### Embed Badge

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

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3851.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.1k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.3k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

282.2k](/packages/webkinder-sproutset)

PHPackages © 2026

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