madand / yii2-underscore
Underscore.js asset for Yii2
Installs: 14 079
Dependents: 3
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 3
Type:yii2-extension
Requires
- bower-asset/underscore: 1.8.*
- yiisoft/yii2: ~2.0.0
This package is not auto-updated.
Last update: 2024-11-09 18:48:42 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.