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

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

junker/smarty-trait
===================

Silex Smarty Trait

0.1.0(9y ago)144MITPHP

Since Jul 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Junker/SmartyTrait)[ Packagist](https://packagist.org/packages/junker/smarty-trait)[ RSS](/packages/junker-smarty-trait/feed)WikiDiscussions master Synced 2mo ago

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

Silex Smarty Trait
==================

[](#silex-smarty-trait)

Smarty Trait for Silex

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

[](#requirements)

- silex 1.x, 2.x
- SmartyServiceProvider

\##Installation The best way to install Smarty Trait is to use a [Composer](https://getcomposer.org/download):

```
php composer.phar require junker/smarty-trait

```

Examples
--------

[](#examples)

```
class Application extends \Silex\Application
{
	use \Junker\Silex\Application\SmartyTrait;
}
```

```
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\StreamedResponse;

$app->get('/', function() use ($app) {

    return $app->render('index.tpl', ['name' => 'Junker']);

    $response = new Response();
    $response->setTtl(10);

    return $app->render('index.tpl', ['name' => 'Junker'], $response);

	return $app->render('index.tpl', ['name' => 'Junker'], new StreamedResponse());
});
```

\##Documentation

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

3597d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1144095?v=4)[Dmitry Kosenkov](/maintainers/Junker)[@Junker](https://github.com/Junker)

---

Tags

traitsmartysilex

### Embed Badge

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

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

###  Alternatives

[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)[text/template

Simple and secure string-template-engine (Twig-like syntax) with nested if/elseif/else, loops, filters. Simple OOP api: Just one class doing the job (2-lines of code). Fast and secure: No code-generation, no eval'ed() code. Extensible by callbacks. Fully tested. Rich examples included.

38201.1k10](/packages/text-template)[mustache/silex-provider

A Mustache service provider for Silex.

1462.4k1](/packages/mustache-silex-provider)

PHPackages © 2026

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