commentar/date-format
Composer 安装命令:
composer require commentar/date-format
包简介
Date formatter to be used in templates to render a DateTime object as a simple formatted string
README 文档
README
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']]); ?>
统计信息
- 总下载量: 23
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-09-07