2017 © Pedro Peláez
 

yii2-extension yii2-momentjs

moment asset for Yii2

image

madand/yii2-momentjs

moment asset for Yii2

  • Thursday, November 19, 2015
  • by MadAnd
  • Repository
  • 1 Watchers
  • 2 Stars
  • 2,726 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 27 % Grown

The README.md

moment asset for Yii2

Provides the asset bundle for easy integration of moment into your Yii2 application., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

composer require --prefer-dist "madand/yii2-momentjs:*"

or add, (*4)

"madand/yii2-momentjs": "*"

to the require section of your composer.json file., (*5)

Usage

In the view file register the asset:, (*6)

// Register only core momentjs with no locale data
\madand\momentjs\MomentJsAsset::register($this);

// Register core momentjs with current app locale. Current locale is activated on DOM ready.
\madand\momentjs\MomentJsLocaleAsset::register($this);

// Register core momentjs with all locales supported by the momentjs.
\madand\momentjs\MomentJsAllLocalesAsset::register($this);

License

The BSD License (BSD). Please see License File for more information., (*7)

The Versions

19/11 2015

dev-master

9999999-dev https://github.com/MadAnd/yii2-momentjs

moment asset for Yii2

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 yii moment