skeeks/yii2-timeago

Timeago is a jQuery plugin that makes it easy to support automatically updating fuzzy timestamps. Forked from @rmm5t for Yii2 framework.

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 14

Type:yii2-extension

2.0.1 2016-07-16 15:26 UTC

This package is auto-updated.

Last update: 2024-10-29 04:53:05 UTC


README

Timeago is a jQuery plugin that makes it easy to support automatically updating fuzzy timestamps. Forked from @rmm5t for Yii2 framework

Installation

Either run

composer global require "fxp/composer-asset-plugin:*"

And add

"yiidoc/yii2-timeago": "*",

Usage

<?= \yii\timeago\TimeAgo::widget(['timestamp' => $model->published_at]); ?>

Now you can use the widget. If you have time, I will write detailed instructions. If you want to change or issue. please open the issue or create pull Thanks for use.