PHPackages                             jmf/twig-time - 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. jmf/twig-time

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

jmf/twig-time
=============

Twig extension for handling date and time in Twig templates.

1.0.1(1mo ago)03103mitPHPPHP ^8.3CI failing

Since Jun 5Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/jmfeurprier/twig-time)[ Packagist](https://packagist.org/packages/jmf/twig-time)[ RSS](/packages/jmf-twig-time/feed)WikiDiscussions 1.0 Synced today

READMEChangelogDependencies (15)Versions (3)Used By (3)

Twig extension : time
=====================

[](#twig-extension--time)

Installation &amp; Requirements
-------------------------------

[](#installation--requirements)

Install with [Composer](https://getcomposer.org):

```
composer require jmf/twig-time
```

PHP intl extension is required if you need to use internationalized date formats.

Usage in Twig templates
-----------------------

[](#usage-in-twig-templates)

### microtime() function

[](#microtime-function)

Returns current microtime (timestamp with milli/microseconds)

```
{% set now = microtime() %}
```

### intl\_format() filter

[](#intl_format-filter)

Formats provided IntlCalendar / DateTime object with internationalization.

See [https://unicode-org.github.io/icu/userguide/format\_parse/datetime/#datetime-format-syntax](https://unicode-org.github.io/icu/userguide/format_parse/datetime/#datetime-format-syntax) for available formatting tokens.

```
{{ date|intl_format('cccc', 'fr_CA.UTF-8') }}
```

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance93

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

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.

###  Release Activity

Cadence

Every ~362 days

Total

3

Last Release

34d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.3

1.0.1PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b08b8105ec8bc88d1c911e10dbf156814769650a67960e2f3d71ed6d2417f0d?d=identicon)[jmfeurprier](/maintainers/jmfeurprier)

---

Top Contributors

[![jmfeurprier](https://avatars.githubusercontent.com/u/8434690?v=4)](https://github.com/jmfeurprier "jmfeurprier (3 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jmf-twig-time/health.svg)

```
[![Health](https://phpackages.com/badges/jmf-twig-time/health.svg)](https://phpackages.com/packages/jmf-twig-time)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[symfony/ux-twig-component

Twig components for Symfony

22018.6M355](/packages/symfony-ux-twig-component)[symfony/ux-live-component

Live components for Symfony

1647.0M128](/packages/symfony-ux-live-component)

PHPackages © 2026

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