PHPackages                             anders/twig-strftime-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. anders/twig-strftime-extension

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

anders/twig-strftime-extension
==============================

use strftime function in twig

1.1.0(8y ago)020MITPHP

Since Mar 18Pushed 8y agoCompare

[ Source](https://github.com/oskonnikov/twig-strftime-extension)[ Packagist](https://packagist.org/packages/anders/twig-strftime-extension)[ RSS](/packages/anders-twig-strftime-extension/feed)WikiDiscussions master Synced 3w ago

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

Twig strftime Filter
====================

[](#twig-strftime-filter)

Use strftime in twig

```
{{ now|date_modify("+3 day")|strftime('%A') }} //-> Monday (if today is thursday at least :) )

{{ date()|strftime('%I:%M:%S %p') }} //-> Display the current time
```

Installation
============

[](#installation)

```
composer require teraone/twig-strftime-extension
```

Add the extension to your twig environment

```
// set your locale
setlocale(LC_ALL, 'de_DE');
$twig->addExtension(new Teraone\Twig\Extension\StrftimeExtension());

// optional: set Timezone
$twig->getExtension('core')->setTimezone('Europe/Berlin');
```

For the full list of supported time formats have a look at the [PHP strftime documentation](http://php.net/manual/en/function.strftime.php)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~543 days

Total

2

Last Release

3214d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/anders-twig-strftime-extension/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

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

Twig components for Symfony

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

Live components for Symfony

1647.0M126](/packages/symfony-ux-live-component)[mati365/ckeditor5-symfony

CKEditor 5 integration for Symfony

262.6k](/packages/mati365-ckeditor5-symfony)

PHPackages © 2026

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