sakhalin / yii2-widget-timeago
Timeago is a jQuery plugin that makes it easy to support automatically updating fuzzy timestamps. Forked from https://github.com/yiidoc/yii2-timeago
Installs: 59
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 2
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/jquery-timeago: 1.*
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-03-05 09:51:00 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:1.0.0-beta4"
And add
"sakhalin/yii2-widget-timeago": "dev-master",
Usage
<?= \sakhalin\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.