PHPackages                             commentar/date-format - 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. commentar/date-format

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

commentar/date-format
=====================

Date formatter to be used in templates to render a DateTime object as a simple formatted string

v0.0.1(12y ago)023MITPHPPHP &gt;=5.4

Since Sep 7Pushed 12y ago1 watchersCompare

[ Source](https://github.com/Commentar/DateFormat)[ Packagist](https://packagist.org/packages/commentar/date-format)[ Docs](https://github.com/Commentar/DateFormat)[ RSS](/packages/commentar-date-format/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

DateFormat
==========

[](#dateformat)

[![Build Status](https://camo.githubusercontent.com/9a3cc1f92627c8b058edf7fa3b183b8a188b5621b720c00aa9372dd0c196964a/68747470733a2f2f7472617669732d63692e6f72672f436f6d6d656e7461722f44617465466f726d61742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/Commentar/DateFormat) [![Scrutinizer Quality Score](https://camo.githubusercontent.com/d93e91f6413f544af77376daef292df2c28ff1ace9287a0b93507e22b196a7bc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f436f6d6d656e7461722f44617465466f726d61742f6261646765732f7175616c6974792d73636f72652e706e673f733d64653866343634623062323934383362616563663137353138383337383165343038343061363231)](https://scrutinizer-ci.com/g/Commentar/DateFormat/) [![Code Coverage](https://camo.githubusercontent.com/8e065e5e938beab2ac5cab03841d1cb55c9b63cec57e10ec976b2716d157a720/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f436f6d6d656e7461722f44617465466f726d61742f6261646765732f636f7665726167652e706e673f733d63306233356531343063363232636438306238386238623938383261643232386332353361653733)](https://scrutinizer-ci.com/g/Commentar/DateFormat/) [![Latest Stable Version](https://camo.githubusercontent.com/6b19fb5ab4c318020000483c4b3a02658ed5141bc855151a6f30b46c4505e88a/68747470733a2f2f706f7365722e707567782e6f72672f436f6d6d656e7461722f646174652d666f726d61742f762f737461626c652e706e67)](https://packagist.org/packages/Commentar/date-format) [![Total Downloads](https://camo.githubusercontent.com/8bcf38b00ec80296ef4b13ea3520df43fe8b153af21ea9510d6e864436651f0c/68747470733a2f2f706f7365722e707567782e6f72672f436f6d6d656e7461722f646174652d666f726d61742f646f776e6c6f6164732e706e67)](https://packagist.org/packages/Commentar/date-format)

Simple date renderer for the [Commentar](https://github.com/Commentar/Commentar) project. This date formatter formats DateTime objects used in comments. Examples of these dates are "date posted" and "post updated" timestamps.

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

[](#installation)

Add the formatter to the project's `composer.json` file:

```
"require": {
    "commentar/date-format": "0.0.*",
}

```

Use it in your templates:

```

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

4680d ago

### Community

Maintainers

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

---

Top Contributors

[![PeeHaa](https://avatars.githubusercontent.com/u/1330296?v=4)](https://github.com/PeeHaa "PeeHaa (8 commits)")

---

Tags

formattertimedatecommentscommentar

### Embed Badge

![Health badge](/badges/commentar-date-format/health.svg)

```
[![Health](https://phpackages.com/badges/commentar-date-format/health.svg)](https://phpackages.com/packages/commentar-date-format)
```

###  Alternatives

[jasny/twig-extensions

A set of useful Twig filters

10610.7M10](/packages/jasny-twig-extensions)[laravelista/comments

Comments for Laravel.

743193.7k1](/packages/laravelista-comments)[kartik-v/php-date-formatter

A Javascript datetime formatting and manipulation library using PHP date-time formats.

471.6M3](/packages/kartik-v-php-date-formatter)[sonata-project/formatter-bundle

Symfony SonataFormatterBundle

842.9M25](/packages/sonata-project-formatter-bundle)[spatie/laravel-blade-comments

Add debug comments to your rendered output

180335.8k](/packages/spatie-laravel-blade-comments)[nystudio107/craft-templatecomments

Adds a HTML comment with performance timings to demarcate `{% block %}`s and each Twig template that is included or extended.

20110.2k3](/packages/nystudio107-craft-templatecomments)

PHPackages © 2026

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