PHPackages                             taavit/twig-extra-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. [Templating &amp; Views](/categories/templating)
4. /
5. taavit/twig-extra-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

taavit/twig-extra-bundle
========================

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

0.1.0(12y ago)33172[5 issues](https://github.com/taavit/TwigExtraBundle/issues)MITPHPPHP &gt;=5.3.3

Since Aug 8Pushed 11y ago3 watchersCompare

[ Source](https://github.com/taavit/TwigExtraBundle)[ Packagist](https://packagist.org/packages/taavit/twig-extra-bundle)[ RSS](/packages/taavit-twig-extra-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

TwigExtraBundle
===============

[](#twigextrabundle)

[![Build Status](https://camo.githubusercontent.com/882ec5cb527785b085fb734403957b066a1d8feb5750038917db2a81cb8df207/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f7461617669742f54776967457874726142756e646c652e706e67)](http://travis-ci.org/taavit/TwigExtraBundle) [![Scrutinizer Quality Score](https://camo.githubusercontent.com/4c32c37f4c83775da2b9f213a0606bef083430e2bb172dff6b4f1f9de1abe001/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7461617669742f54776967457874726142756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f733d64363866346266343734623938303033343262373062326163616466303335333131363037623431)](https://scrutinizer-ci.com/g/taavit/TwigExtraBundle/)

\##Installation via composer Update your composer.json

```
{
   "require":
     {
       "taavit/TwigExtraBundle": "dev-master"
     }
}
```

composer.phar update taavit/TwigExtraBundle

Update your AppKernel.php

```
public function registerBundles()
{
    return array(
        // ...
        new Taavit\TwigExtraBundle\TwigExtraBundle(),
        // ...
    );
}
```

\##Usage

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

```
{{comment.created|prettify}}
```

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

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4658d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f0d65444d5fd4d0b5ea337d1c831b32ae39cd86089be573da108032a9cc29b22?d=identicon)[taavit](/maintainers/taavit)

---

Top Contributors

[![taavit](https://avatars.githubusercontent.com/u/754920?v=4)](https://github.com/taavit "taavit (30 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (3 commits)")

---

Tags

twigSymfony2datetimedate

### Embed Badge

![Health badge](/badges/taavit-twig-extra-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/taavit-twig-extra-bundle/health.svg)](https://phpackages.com/packages/taavit-twig-extra-bundle)
```

###  Alternatives

[jasny/twig-extensions

A set of useful Twig filters

10710.2M8](/packages/jasny-twig-extensions)[damianociarla/rating-bundle

This Bundle provides functionality for a rating system for Symfony applications

236.1k](/packages/damianociarla-rating-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
