PHPackages                             figdice/slim-view - 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. [Framework](/categories/framework)
4. /
5. figdice/slim-view

ActiveLibrary[Framework](/categories/framework)

figdice/slim-view
=================

Slim Framework 3 view helper built on top of the FigDice templating component

3.0.x-dev(10y ago)0160MITPHPPHP &gt;=5.3.0

Since Oct 12Pushed 10y ago1 watchersCompare

[ Source](https://github.com/figdice/figdice-slim)[ Packagist](https://packagist.org/packages/figdice/slim-view)[ Docs](http://figdice.org)[ RSS](/packages/figdice-slim-view/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

figdice-slim
============

[](#figdice-slim)

*Slim Framework 3 Delegate for FigDice View*

Container (DI) View component for the [Slim Framework 3](http://www.slimframework.com/), that wires FigDice Templating library into Slim.

Read [Slim Views](http://www.slimframework.com/docs/features/templates.html) Documentation for more details.

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

[](#installation)

In composer.json:

```
"require": {
  "figdice/slim-view": "*"
}
```

Usage
-----

[](#usage)

### 1. Register FigDice SlimView component in Slim container

[](#1-register-figdice-slimview-component-in-slim-container)

```
// Create container
$container = new \Slim\Container;

// Register component on container
$container['view'] = function ($c) {
  $slimview = new \figdice\slim\SlimView('path/to/templates');

  // Optionally configure FigDice View settings
  // (cache directory, dictionaries, feed & function factories, etc.)
  $slimview->getView()->setTempPath('path/to/cache');
  $slimview->getView()->registerFeedFactory( new MyFeedFactory(...) );
  // ...

  return $slimview;
};
```

### 2. Render FigDice templates in Slim routes

[](#2-render-figdice-templates-in-slim-routes)

```
// Create app
$app = new \Slim\App($container);

// Render FigDice template in route
$app->get('/hello/{name}', function ($request, $response, $args) {
    return $this->view->render($response, 'profile.html', [
        'name' => $args['name']
    ]);
});

// Run app
$app->run();
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3871d ago

### Community

Maintainers

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

---

Top Contributors

[![figdice](https://avatars.githubusercontent.com/u/7250633?v=4)](https://github.com/figdice "figdice (11 commits)")

---

Tags

frameworkslimtemplateviewfigdice

### Embed Badge

![Health badge](/badges/figdice-slim-view/health.svg)

```
[![Health](https://phpackages.com/badges/figdice-slim-view/health.svg)](https://phpackages.com/packages/figdice-slim-view)
```

###  Alternatives

[slim/twig-view

Slim Framework 4 view helper built on top of the Twig 3 templating component

3708.0M210](/packages/slim-twig-view)[slim/php-view

Render PHP view scripts into a PSR-7 Response object.

2739.7M95](/packages/slim-php-view)[mathmarques/smarty-view

Slim Framework 4 view helper built on top of the Smarty templating component

24134.7k1](/packages/mathmarques-smarty-view)[rubellum/slim-blade-view

Slim Framework 3 view helper built on the Blade component

1822.4k2](/packages/rubellum-slim-blade-view)[projek-xyz/slim-plates

Render your Slim 3 application views using Plates template engine.

2678.2k3](/packages/projek-xyz-slim-plates)

PHPackages © 2026

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