claudejanz / yii2-moment
asset loader for moment.js
Installs: 63
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- bower-asset/moment: >=2.9
- yiisoft/yii2: *
- yiisoft/yii2-jui: *
This package is auto-updated.
Last update: 2024-11-11 19:20:25 UTC
README
An simple Asset loader to load moment.js website
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist claudejanz/yii2-moment "*"
or add
"claudejanz/yii2-moment": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your view by:
use claudejanz\yii2moment\MomentAsset MomentAsset::register($this->view);