Skip to content

Commentar/DateFormat

Repository files navigation

DateFormat

Build Status Scrutinizer Quality Score Code Coverage Latest Stable Version Total Downloads

Simple date renderer for the Commentar project. This date formatter formats DateTime objects used in comments. Examples of these dates are "date posted" and "post updated" timestamps.

Installation

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

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

Use it in your templates:

<?php echo $this->renderView('DateFormat', ['timestamp' => $comment['updated']]); ?>

About

This date formatter formats DateTime objects used in comments.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages