PHPackages                             hexmedia/time-formatter-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. hexmedia/time-formatter-bundle

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

hexmedia/time-formatter-bundle
==============================

Symfony2 extension to presenting time in seconds

v1.0.1(12y ago)22871[1 issues](https://github.com/Hexmedia/TimeFormatter-Bundle/issues)1MITPHPPHP &gt;=5.3.2

Since Nov 20Pushed 11y ago2 watchersCompare

[ Source](https://github.com/Hexmedia/TimeFormatter-Bundle)[ Packagist](https://packagist.org/packages/hexmedia/time-formatter-bundle)[ Docs](http://github.com/Hexmedia/time-formatter)[ RSS](/packages/hexmedia-time-formatter-bundle/feed)WikiDiscussions master Synced 2w ago

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

TimeFormatter Symfony Bundle
============================

[](#timeformatter-symfony-bundle)

[![Build Status](https://camo.githubusercontent.com/582c71075ac54d6e7ac427053acce03eaa68cd16786fc3265acf217d9e869d62/687474703a2f2f6a656e6b696e732e6865786d656469612e706c2f6275696c645374617475732f69636f6e3f6a6f623d4865786d6564696154696d65466f726d6174746572)](http://jenkins.hexmedia.pl/view/All/job/HexmediaTimeFormatter/)[![Build Status](https://camo.githubusercontent.com/e8359e1b686fe611b454cfa0e0e3b53e04c8f46c9ea062fbd0be69a4aeec1b51/68747470733a2f2f7472617669732d63692e6f72672f4865786d656469612f54696d65466f726d61747465722d42756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/Hexmedia/TimeFormatter-Bundle)[![Latest Stable Version](https://camo.githubusercontent.com/a548e5f2773b6d73eb0f5e39147fbb00e74f5c8527007d295095eaed9ef1de74/68747470733a2f2f706f7365722e707567782e6f72672f6865786d656469612f74696d652d666f726d61747465722d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/hexmedia/time-formatter-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/ca3259f5818c45f7f60930c8c3f794290efdfdd73eaf9c474cba2388e279095a/68747470733a2f2f706f7365722e707567782e6f72672f6865786d656469612f74696d652d666f726d61747465722d62756e646c652f762f756e737461626c652e706e67)](https://packagist.org/packages/hexmedia/time-formatter-bundle)

This is a Bundle for Symfony2 Framework where you can easli convert a datetime/timestamp to distance of time in words.

By example

```
{{ var.data|time_formatter }}

```

Outputs

```
day ago

```

Installation for Symfony2
=========================

[](#installation-for-symfony2)

1. Update your composer.json

```
{
	"require": {
		"Hexmedia/TimeFormatterBundle": "dev-master"
	}
}

```

or use composer's require command:

```
composer require Hexmedia/TimeFormatterBundle:dev-master

```

2. Update AppKernel

```
	public function registerBundles() {
		$bundles = array(
			...
			new Hexmedia\TimeFormatterBundle\HexmediaTimeFormatterBundle(),
			...
			);
		return $bundles;
	}

```

Usage
=====

[](#usage)

To display distance of time in words between a date and current date:

```
{{ var.data|time_formatter }}

```

To display distance of time between two custom dates you should use

```
{{ var.data|time_formatter(message.updated) }}

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.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

Every ~0 days

Total

2

Last Release

4605d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9bdb97700cdbeedde008012eecb49fcb02601e6301b8dc66e3d2b61b93e28716?d=identicon)[kuczek](/maintainers/kuczek)

---

Top Contributors

[![kuczek](https://avatars.githubusercontent.com/u/2432505?v=4)](https://github.com/kuczek "kuczek (51 commits)")[![salavert](https://avatars.githubusercontent.com/u/216846?v=4)](https://github.com/salavert "salavert (12 commits)")[![stevelacey](https://avatars.githubusercontent.com/u/289531?v=4)](https://github.com/stevelacey "stevelacey (3 commits)")[![micronax](https://avatars.githubusercontent.com/u/1337823?v=4)](https://github.com/micronax "micronax (2 commits)")[![vhpoet](https://avatars.githubusercontent.com/u/686185?v=4)](https://github.com/vhpoet "vhpoet (1 commits)")

---

Tags

twigtemplatingdistance of timetime format

### Embed Badge

![Health badge](/badges/hexmedia-time-formatter-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/hexmedia-time-formatter-bundle/health.svg)](https://phpackages.com/packages/hexmedia-time-formatter-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[timber/timber

Create WordPress themes with beautiful OOP code and the Twig Template Engine

5.7k3.6M127](/packages/timber-timber)[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91397.6M427](/packages/twig-extra-bundle)[symfony/ux-twig-component

Twig components for Symfony

22017.2M313](/packages/symfony-ux-twig-component)[symfony/ux-live-component

Live components for Symfony

1636.5M116](/packages/symfony-ux-live-component)[symfony/ux-toolkit

A tool to easily create a design system in your Symfony app with customizable, well-crafted Twig components

1682.8k1](/packages/symfony-ux-toolkit)

PHPackages © 2026

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