PHPackages                             staspiv/knp-time-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. staspiv/knp-time-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

staspiv/knp-time-bundle
=======================

Knplabs time bundle makes your dates look sensible and descriptive

1.6.1(10y ago)070MITPHPPHP &gt;=5.3.3

Since Jan 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/StasPiv/KnpTimeBundle)[ Packagist](https://packagist.org/packages/staspiv/knp-time-bundle)[ Docs](http://github.com/KnpLabs/KnpTimeBundle)[ RSS](/packages/staspiv-knp-time-bundle/feed)WikiDiscussions master Synced 4w ago

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

Friendly ago dates ("5 minutes ago")!
=====================================

[](#friendly-ago-dates-5-minutes-ago)

[![Build Status](https://camo.githubusercontent.com/fe47a9ada4fcf4974a91b212d3d405dba5d8106921ad501fd199e8b1501af990/68747470733a2f2f7472617669732d63692e6f72672f4b6e704c6162732f4b6e7054696d6542756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/KnpLabs/KnpTimeBundle)

This bundle does one simple job: takes dates and gives you friendly "2 hours ago"-type messages. Woh!

```
Last edited {{ post.updatedAt|ago }}

```

The date formatted can be translated into any language, and may are supported out of the box.

INSTALLATION via Composer
-------------------------

[](#installation-via-composer)

```
composer require knplabs/knp-time-bundle

```

CONFIGURATION
-------------

[](#configuration)

Register the bundle:

```
