PHPackages                             fignon/fignon-smarty-engine - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. fignon/fignon-smarty-engine

ActiveLibrary[HTTP &amp; Networking](/categories/http)

fignon/fignon-smarty-engine
===========================

The Fignon smarty Engine is a simple class which serve as bridge between the smarty template engine and Fignon Framework

0.0.1(2y ago)03MITPHPPHP &gt;=8.0.0

Since Feb 16Pushed 2y agoCompare

[ Source](https://github.com/FignonPhp/fignon-smarty-engine)[ Packagist](https://packagist.org/packages/fignon/fignon-smarty-engine)[ Docs](https://github.com/FignonPhp/fignon-smarty-engine)[ RSS](/packages/fignon-fignon-smarty-engine/feed)WikiDiscussions main Synced 1mo ago

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

Fignon Smarty Engine
====================

[](#fignon-smarty-engine)

This is a simple class to encapsulate the Smarty template engine and use it easily in the Fignon Framework.

In your Fignon project, run:

```
composer require fignon/fignon-smarty-engine
```

Then, use it like this:

```
//app.php (or index.php) depending of how you call you entry point
declare(strict_types=1);

include_once __DIR__ . "/../vendor/autoload.php";

use Fignon\Tunnel;
use App\Features\Features;
use Fignon\Extra\SmartyEngine;

$app = new Tunnel();
$app->set('env', 'development');
// ... other middlewares

// View engine initialization
$app->set('views', dirname(__DIR__) . '/templates');
$app->set('views cache', dirname(__DIR__) . '/var/cache');
$app->set('view engine options', [ // Smarty require these additional option to work
    'compileDir' => 'path/to/compile/dir',
    'configDir' => 'path/to/config/dir'
]); // Add options to the view engine
$app->engine('smarty', new SmartyEngine());

$app->set('case sensitive routing', true);
//  ... other middlewares

// You can then use it to render
(new Features($app))->bootstrap();

$app->listen();
```

Other view engine integration to Fignon are:

- [The Twig Engine](https://github.com/FignonPhp/fignon-twig-engine)
- [The Plates Engine](https://github.com/FignonPhp/fignon-plate-engine)
- [The Laravel Blade Engine](https://github.com/FignonPhp/fignon-blade-engine)

Sample Smarty Config files:

```
#path/to/config/dir/smarty_config.conf

# global variables
pageTitle = "Main Menu"
bodyBgColor = #000000
tableBgColor = #000000
rowBgColor = #00ff00

[Customer]
pageTitle = "Customer Info"

[Login]
pageTitle = "Login"
focus = "username"
Intro = """This is a value that spans more
           than one line. you must enclose
           it in triple quotes."""

# hidden section
[.Database]
host=my.example.com
db=ADDRESSBOOK
user=php-user
pass=foobar
```

To learn more about smarty, please refer to the [documentation of Smarty.](https://smarty-php.github.io/smarty/stable/)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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

813d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cc6c946e74297eef4d13c1e20cfd45c3c74c6db07f81a7b8a21fe9da3bf3e4df?d=identicon)[Dah-kenangnon Y. Justin](/maintainers/Dah-kenangnon%20Y.%20Justin)

---

Tags

httpresponserequestphpmiddlewareapirestwebsiteREST APIrestfulphp frameworkChainrunnerphp-middlewaretunnel

### Embed Badge

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

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

###  Alternatives

[elementaryframework/water-pipe

URL routing framework and requests/responses handler for PHP

254.6k4](/packages/elementaryframework-water-pipe)

PHPackages © 2026

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