PHPackages                             fobiaweb/slim-views - 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. fobiaweb/slim-views

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

fobiaweb/slim-views
===================

Smarty and Twig View Parser package for the Slim Framework

v0.2.1(11y ago)0156MITPHPPHP &gt;=5.3.0

Since May 7Pushed 11y ago3 watchersCompare

[ Source](https://github.com/fobiaweb/Slim-Views)[ Packagist](https://packagist.org/packages/fobiaweb/slim-views)[ RSS](/packages/fobiaweb-slim-views/feed)WikiDiscussions master Synced 2d ago

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

Slim Views
==========

[](#slim-views)

This repository contains custom View classes for the template frameworks listed below. You can use any of these custom View classes by either requiring the appropriate class in your Slim Framework bootstrap file and initialize your Slim application using an instance of the selected View class or using Composer (the recommended way).

Slim Views only officially support the following views listed below.

- Smarty
- Twig

How to Install
--------------

[](#how-to-install)

#### using [Composer](http://getcomposer.org/)

[](#using-composer)

Create a composer.json file in your project root:

```
{
    "require": {
        "slim/views": "0.1.*"
    }
}
```

Then run the following composer command:

```
$ php composer.phar install
```

Smarty
------

[](#smarty)

### How to use

[](#how-to-use)

```
