承接 commentar/time-ago 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

commentar/time-ago

Composer 安装命令:

composer require commentar/time-ago

包简介

This package calculates the time since a specific `DateTime` object en displays it in a human readable format.

README 文档

README

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

Date renderer for the Commentar project. This package calculates the time since a specific DateTime object en displays it in a human readable format. E.g. 5 minutes ago.

The supported steps are:

  • seconds
  • minutes
  • hours
  • days
  • weeks
  • months
  • years

It is installed by default when first installing the Commentar system.

Installation

If you are running a standard installation of Commentar you don't have to install anything (it is the default timestamp formatter of the system).

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

"require": {
    "commentar/time-ago": "0.0.*",
}

Use it in your templates:

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

统计信息

  • 总下载量: 181
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-09-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固