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

v1.0 2017-11-13 18:18 UTC

This package is auto-updated.

Last update: 2024-12-11 19:35:57 UTC


README

An simple Asset loader to load moment.js website

Latest Stable Version Total Downloads Latest Unstable Version License

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);