PHPackages                             artur-gajewski/date-converter-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. artur-gajewski/date-converter-bundle

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

artur-gajewski/date-converter-bundle
====================================

This bundle adds a Twig Extension with a filter for automatically dates to more readable format, such as 'today', 'yesterday', '5 minutes ago', '2 days ago', etc...

39641PHP

Since Oct 3Pushed 11y agoCompare

[ Source](https://github.com/artur-gajewski/date-converter-bundle)[ Packagist](https://packagist.org/packages/artur-gajewski/date-converter-bundle)[ RSS](/packages/artur-gajewski-date-converter-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

AgaDateConverterBundle
======================

[](#agadateconverterbundle)

About
-----

[](#about)

This bundle adds a Twig Extension with a filter for automatically converting date to more human readable format:

- Yesterday
- 5 minutes ago
- 2 hours ago
- 3 days ago

and many more formats...

Travis CI status
----------------

[](#travis-ci-status)

[![Build Status](https://camo.githubusercontent.com/4ba8c9ba4a4ee13395ed068348deb4970183eda469e6c2d1025441757fd4328e/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f61727475722d67616a6577736b692f646174652d636f6e7665727465722d62756e646c652e706e67)](https://travis-ci.org/artur-gajewski/date-converter-bundle)

Installation
------------

[](#installation)

Add the following lines to your composer.json file and update your project's composer installation.

```
{
    "require": {
       "artur-gajewski/date-converter-bundle": "1.0.*@dev"
    }
}
```

Add this bundle to your application's kernel:

```
// application/ApplicationKernel.php
public function registerBundles()
{
  return array(
	  // ...
	  new Aga\DateConverterBundle\DateConverterBundle(),
	  // ...
  );
}

```

Make the Twig extensions available by updating your services configuration

```
// app/config/services.yml
aga_dateconverter.twig.extension:
	class: Aga\DateConverterBundle\Extension\DateConverterTwigExtension
	tags:
		- { name: twig.extension }

```

Usage
-----

[](#usage)

This library adds a filter for twig templates that can be used like so:

```
{{ item.created | ago }}

```

License
-------

[](#license)

See `LICENSE`.

Contact
-------

[](#contact)

Email:

Skype: artur.t.gajewski.com

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ba89395df6a300cbd336d7b0fd2de2cb18e5c06a74a103d5487dff6ff727e8c?d=identicon)[artur-gajewski](/maintainers/artur-gajewski)

---

Top Contributors

[![lamminpaa](https://avatars.githubusercontent.com/u/1034169?v=4)](https://github.com/lamminpaa "lamminpaa (1 commits)")

### Embed Badge

![Health badge](/badges/artur-gajewski-date-converter-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/artur-gajewski-date-converter-bundle/health.svg)](https://phpackages.com/packages/artur-gajewski-date-converter-bundle)
```

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

281.8k](/packages/webkinder-sproutset)

PHPackages © 2026

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