PHPackages                             torann/snazzy-twig - 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. torann/snazzy-twig

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

torann/snazzy-twig
==================

Render user templates using the power of Twig

0.1.4(8y ago)051BSD-2-ClausePHPPHP &gt;=5.6

Since Feb 24Pushed 8y ago2 watchersCompare

[ Source](https://github.com/Torann/snazzy-twig)[ Packagist](https://packagist.org/packages/torann/snazzy-twig)[ RSS](/packages/torann-snazzy-twig/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (5)Versions (10)Used By (0)

Snazzy Twig
===========

[](#snazzy-twig)

[![Latest Stable Version](https://camo.githubusercontent.com/97b3e284ca5a03cada39fb11ba93b1794238fa5064a89f4b4f2033be40cd232f/68747470733a2f2f706f7365722e707567782e6f72672f746f72616e6e2f736e617a7a792d747769672f762f737461626c652e706e67)](https://packagist.org/packages/torann/snazzy-twig) [![Total Downloads](https://camo.githubusercontent.com/3dd3fd2ff04d5b0765631b44bacf9460953b333862d7278dedc25d0398a6ea7b/68747470733a2f2f706f7365722e707567782e6f72672f746f72616e6e2f736e617a7a792d747769672f646f776e6c6f6164732e706e67)](https://packagist.org/packages/torann/snazzy-twig)

Laravel implantation of [Skosh](https://github.com/Torann/skosh)'s Twig templating engine for use in a multi-tenant environment.

- [Snazzy Twig on Packagist](https://packagist.org/packages/torann/snazzy-twig)
- [Snazzy Twig on GitHub](https://github.com/torann/snazzy-twig)

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

[](#installation)

### Composer

[](#composer)

From the command line run:

```
$ composer require torann/snazzy-twig

```

### The Service Provider

[](#the-service-provider)

You will need to extend the built in service provider so that you can add your custom widgets and get the website instance. To do this create a service provider named `TwigServiceProvider` in the `\app\Providers` directory and extend the Snazzy Twig provider like below:

```
