yii-ui/yii-momentjs

This package is abandoned and no longer maintained. No replacement package was suggested.

Yii2 Asset for Moment.js

Installs: 2 483

Dependents: 0

Suggesters: 0

Security: 0

Type:yii2-extension

dev-master 2020-06-22 07:37 UTC

This package is auto-updated.

Last update: 2022-04-22 11:35:24 UTC


README

Latest Stable Version Total Downloads Yii2 License

This is an Yii framework 2.0 asset for Moment.js.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require yii-ui/yii-momentjs

or add

"yii-ui/yii-momentjs": "dev-master"

to the require section of your composer.json file.

Usage

in your layout file (ex. views/layouts/main.php):

\yiiui\momentjs\MomentJsAsset::register($this);

or as dependency in your app asset bundle:

namespace app\assets;

use yii\web\AssetBundle;

class AppAsset extends AssetBundle
{
    public $sourcePath = '@app/assets';

    public $js = [
        'js/main.js',
    ];

    public $css = [
        'css/main.scss',
    ];

    public $depends = [
        'yiiui\momentjs\MomentJsAsset'
    ];
}

More Examples will be added soon at https://www.yii-ui.com/yii-momentjs. For full list of icons see Material Design Icons Documentation.

Documentation

Documentation will be added soon at https://www.yii-ui.com/yii-momentjs.

License

yii-momentjs is released under the MIT License. See the LICENSE.md for details.