PHPackages                             antalaron/doctrine-twig-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. antalaron/doctrine-twig-bundle

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

antalaron/doctrine-twig-bundle
==============================

Twig Doctrine Bundle

v1.0.1(9y ago)020MITPHPPHP &gt;=5.5.9

Since Feb 18Pushed 9y ago1 watchersCompare

[ Source](https://github.com/antalaron/doctrine-twig-bundle)[ Packagist](https://packagist.org/packages/antalaron/doctrine-twig-bundle)[ Docs](https://github.com/antalaron/doctrine-twig-bundle)[ RSS](/packages/antalaron-doctrine-twig-bundle/feed)WikiDiscussions master Synced 4w ago

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

DoctrineTwigBundle
==================

[](#doctrinetwigbundle)

[![Build Status](https://camo.githubusercontent.com/7bdc51594119dd92d7a081908e91110d827b2ad7643e5166c3f2189af0a9f290/68747470733a2f2f7472617669732d63692e6f72672f616e74616c61726f6e2f646f637472696e652d747769672d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/antalaron/doctrine-twig-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/52984f516f743f5a446d728dc8d087f56b5debfc33ac450607fc69aa9bcea16d/68747470733a2f2f706f7365722e707567782e6f72672f616e74616c61726f6e2f646f637472696e652d747769672d62756e646c652f762f737461626c65)](https://packagist.org/packages/antalaron/doctrine-twig-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/98c28aabb352ade0b9c353a8828994f47148a747f234f0d1a442ac9703220e37/68747470733a2f2f706f7365722e707567782e6f72672f616e74616c61726f6e2f646f637472696e652d747769672d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/antalaron/doctrine-twig-bundle)

[Doctrine](http://www.doctrine-project.org/) [Twig](http://twig.sensiolabs.org/)loader bundle for [Symfony](https://symfony.com/). This bundle allows you to store templates in database.

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

[](#installation)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require antalaron/doctrine-twig-bundle
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
