2017 © Pedro PelĂĄez
 

symfony-bundle twig-extra-bundle

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

image

taavit/twig-extra-bundle

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

  • Friday, November 7, 2014
  • by taavit
  • Repository
  • 3 Watchers
  • 3 Stars
  • 307 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 5 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

TwigExtraBundle

Build Status Scrutinizer Quality Score, (*1)

Installation via composer

Update your composer.json json { "require": { "taavit/TwigExtraBundle": "dev-master" } }, (*2)

composer.phar update taavit/TwigExtraBundle, (*3)

Update your AppKernel.php php public function registerBundles() { return array( // ... new Taavit\TwigExtraBundle\TwigExtraBundle(), // ... ); }, (*4)

Usage

To your DateTime object in twig (created,updated) you simply add '|prettify'. Example: twig {{comment.created|prettify}} and you will get nice formated when comment was added (5 days ago, yesterday, One year ago), (*5)

The Versions

07/11 2014

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dawid KrĂłlak

twig symfony2 date datetime

08/08 2013

0.1.0

0.1.0.0

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

  Sources   Download

MIT

The Requires

 

by Dawid KrĂłlak

twig symfony2 date datetime