madand/yii2-knockoutjs

knockoutjs asset for Yii2

Installs: 175

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Type:yii2-extension

3.3 2015-06-20 17:21 UTC

This package is not auto-updated.

Last update: 2024-11-09 18:00:13 UTC


README

Provides the asset bundle for easy integration of knockoutjs into your Yii2 application.

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"madand/yii2-knockoutjs": "*"

to the require section of your composer.json file.

You may also specify the version of Knockout to install (e.g. 3.2), starting from 3.1:

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

Usage

In the view file register the asset:

\madand\knockoutjs\KnockoutAsset::register($this);

License

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