PHPackages                             genstor/twig-age-extension - 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. genstor/twig-age-extension

AbandonedArchivedLibrary[Templating &amp; Views](/categories/templating)

genstor/twig-age-extension
==========================

Simple Twig extension to calculate the age in years based on a DateTime instance or a simple string

1.0.4(9y ago)14.1kMITPHPPHP &gt;=5.3.0

Since Dec 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/genstor/twig-age-extension)[ Packagist](https://packagist.org/packages/genstor/twig-age-extension)[ Docs](https://github.com/genstor/twig-age-extension)[ RSS](/packages/genstor-twig-age-extension/feed)WikiDiscussions master Synced 2mo ago

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

twig-age-extension
==================

[](#twig-age-extension)

Simple Twig extension to calculate the age in years based on a DateTime instance or a string

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

[](#installation)

Install via composer:

```
composer require genstor/twig-age-extension:@dev

```

Add the following to your services.yml file:

```
services:
    twig.extension.date:
        class: Genstor\Twig\AgeExtension
        tags:
            - { name: twig.extension }
```

Usage
-----

[](#usage)

```
{{ user.birthdate | age }}

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

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

5

Last Release

3424d ago

### Community

Maintainers

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

---

Top Contributors

[![rmonteil](https://avatars.githubusercontent.com/u/18598001?v=4)](https://github.com/rmonteil "rmonteil (10 commits)")[![TheRealGusBus](https://avatars.githubusercontent.com/u/60719155?v=4)](https://github.com/TheRealGusBus "TheRealGusBus (3 commits)")[![guzzlefry](https://avatars.githubusercontent.com/u/3201334?v=4)](https://github.com/guzzlefry "guzzlefry (2 commits)")

---

Tags

agedatedatetimetwigtwig-extensiontwigdatetemplatingextensionage

### Embed Badge

![Health badge](/badges/genstor-twig-age-extension/health.svg)

```
[![Health](https://phpackages.com/badges/genstor-twig-age-extension/health.svg)](https://phpackages.com/packages/genstor-twig-age-extension)
```

###  Alternatives

[timber/timber

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

5.7k3.4M111](/packages/timber-timber)[shoot/shoot

Shoot aims to make providing data to your templates more manageable

40229.9k2](/packages/shoot-shoot)[redant/twig-components

Define reusable components in Twig.

3819.8k1](/packages/redant-twig-components)

PHPackages © 2026

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