PHPackages                             raindrop/twigloader-bundle - 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. [Database &amp; ORM](/categories/database)
4. /
5. raindrop/twigloader-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

raindrop/twigloader-bundle
==========================

Symfony Raindrop TwigLoaderBundle

v0.9.1(13y ago)3109MITPHPPHP &gt;=5.3.3

Since Mar 17Pushed 13y ago2 watchersCompare

[ Source](https://github.com/raindropdevs/RaindropTwigLoaderBundle)[ Packagist](https://packagist.org/packages/raindrop/twigloader-bundle)[ Docs](https://github.com/raindropdevs)[ RSS](/packages/raindrop-twigloader-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (12)Versions (6)Used By (0)

Raindrop Twig Loader Bundle
===========================

[](#raindrop-twig-loader-bundle)

[![Build Status](https://camo.githubusercontent.com/b5712dd30f381861145677bcfa1547d75ccb0bc8aaebd3b08f7d09729d531de7/68747470733a2f2f7472617669732d63692e6f72672f7261696e64726f70646576732f5261696e64726f70547769674c6f6164657242756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/raindropdevs/RaindropTwigLoaderBundle)

This bundle adds database support for twig templates. It substitutes Twig\_Loader\_FileSystem with Twig\_Loader\_Chain and appends Database and FileSystem loader. To load from database, use database: syntax into render method.

### **INSTALLATION**:

[](#installation)

First add the dependency to your composer.json` file:

```
"require": {
    ...
    "raindrop/twigloader-bundle": "dev-master"
},

```

Then install the bundle with the command:

```
php composer.phar update

```

Enable the bundle in your application kernel:

```
