peng/yii2-evaluation

An Yii2 extension, a widget which helps creating online survey, evaluation, etc

Installs: 47

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 2

Open Issues: 0

Type:yii2-extension

0.1.0 2016-01-05 07:44 UTC

This package is not auto-updated.

Last update: 2024-11-13 19:31:08 UTC


README

An Yii2 extension, a widget which helps creating online survey, evaluation, etc

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist peng/yii2-evaluation "0.1.0"

or add

"peng/yii2-evaluation": "0.1.0"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \peng\evaluation\RadioButtonMatrix::widget([
	'id' => 'self-evalution',
	'questions' => ['Strength of Mind', 'Open Communication', 'Leadership',
		'Understanding', 'Teamwork', 'Integrity', 'Originality', 'Notification',
	],
	'scale' => ['min' => 0, 'max' => 5],
	'sections' => ['2015 Scores', '2016 Scores'],
	'enableComment' => true,
]); ?>

Screenshot