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

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

moltin/slim-views
=================

Smarty and Twig View Parser package for the Slim Framework

0.1.2(12y ago)0631MITPHPPHP &gt;=5.3.0

Since Jul 10Pushed 11y ago6 watchersCompare

[ Source](https://github.com/moltin/Slim-Views)[ Packagist](https://packagist.org/packages/moltin/slim-views)[ Docs](http://github.com/codeguy/Slim-Views)[ RSS](/packages/moltin-slim-views/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (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)

```
