This bundles provides extra twig extensions and filter (DateTime prettifier)

0.1.0 2013-08-08 08:59 UTC


Build Status Scrutinizer Quality Score

Installation via composer

Update your composer.json

         "taavit/TwigExtraBundle": "dev-master"

composer.phar update taavit/TwigExtraBundle

Update your AppKernel.php

  public function registerBundles()
      return array(
          // ...
          new Taavit\TwigExtraBundle\TwigExtraBundle(),
          // ...


To your DateTime object in twig (created,updated) you simply add '|prettify'. Example:


and you will get nice formated when comment was added (5 days ago, yesterday, One year ago)