PHPackages                             frizzy/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. [Templating &amp; Views](/categories/templating)
4. /
5. frizzy/slim-view

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

frizzy/slim-view
================

Extends the Slim Framework View class for easy injection of any templating engine

0.1.1(11y ago)034MITPHPPHP &gt;=5.4.0

Since Nov 19Pushed 11y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (0)

Slim View
=========

[](#slim-view)

Inject any rendering engine into your Slim View. Multiple engines are supported and the view will fall back to standard PHP templates if a template cannot be resolved.

Usage
-----

[](#usage)

Add the following in your root composer.json file:

```
{
    "require": {
        "frizzy/slim-view": "0.*"
    }
}

```

Adding Twig to your view:

```
$view   = new \Frizzy\Slim\View\View;
$loader = new \Twig_Loader_Filesystem(__DIR__ . '/my_templates');

$view->setRenderEngine(
    new \Twig_Environment($loader),
    function ($engine, $template, $data) {
        return $engine->loadTemplate($template)->render($data);
    },
    function ($template) {
        return preg_match('/\.twig$/', $template);
    }
);

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity50

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

Every ~252 days

Total

2

Last Release

4302d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.3.0

0.1.1PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/964dbd6d4daa4dd21579617c8c7ad6a8b3648e2411772e8d0a6779a63c476ecf?d=identicon)[frizzy](/maintainers/frizzy)

---

Tags

templatingextensionsslimphp

### Embed Badge

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

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

###  Alternatives

[twig/twig

Twig, the flexible, fast, and secure template language for PHP

8.4k443.2M5.8k](/packages/twig-twig)[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[smarty/smarty

Smarty - the compiling PHP template engine

2.3k39.1M394](/packages/smarty-smarty)[laminas/laminas-view

Fast and type safe HTML templating library with a flexible plugin system supporting multistep template composition

7526.3M230](/packages/laminas-laminas-view)[dearon/slim-mustache

Mustache View Parser package for the Slim Framework

144.9k2](/packages/dearon-slim-mustache)[yepsua/smartwig-bundle

The jQuery, jQueryUI (and more) Symfony Bundle

214.0k3](/packages/yepsua-smartwig-bundle)

PHPackages © 2026

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