madand/yii2-underscore

Underscore.js asset for Yii2

Installs: 14 413

Dependents: 3

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 3

Type:yii2-extension

1.8 2015-04-15 19:33 UTC

This package is not auto-updated.

Last update: 2024-12-21 19:37:02 UTC


README

Provides asset class for easy integration of Underscore.js into your Yii2 application.

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"madand/yii2-underscore": "*"

to the require section of your composer.json file.

You may also specify the version of Underscore to install (e.g. 1.5, 1.8), starting from 1.5:

# this will install the latest revision in 1.8 branch (e.g. 1.8.3)
composer require --prefer-dist "madand/yii2-underscore:1.8"

Usage

In the view file register the asset:

\madand\underscore\UnderscoreAsset::register($this);

License

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