Download the PHP package onmotion/yii2-page-assessments without Composer
On this page you can find all versions of the php package onmotion/yii2-page-assessments. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-page-assessments
Yii2 page assessment/polls extension
The page assessment (polls) module for Yii2 framework based on Vue2.
Language: Русский
Fluent view:
Static (embeded in a page) view:
Installation
Just run:
composer require onmotion/yii2-page-assessments
or add
"onmotion/yii2-page-assessments": "*"
to the require section of your composer.json file.
apply migration:
php yii migrate --migrationPath=@vendor/onmotion/yii2-page-assessments/migrations
Usage
You must add to your config:
Then you can use the widget somewhere on the page:
Example:
Options
option | type | default | description |
---|---|---|---|
fluent | bool | false | fluent or static view |
questions | string || array | see example | |
timeout | integer | 1500 | timeout bafore appearance |
model (optional) | ActiveRecord | null | Attach Model::class info with primary key |
icons | array | [] | custom icons |
Events
assessment.show - when an assessment item appears.
assessment.end - when all questions are completed.
You can change icons as you want, for example:
All versions of yii2-page-assessments with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
yiisoft/yii2 Version >=2.0.1
onmotion/yii2-vuejs-assets Version >=1.0.1
onmotion/yii2-babel-polyfill-assets Version *
yiisoft/yii2 Version >=2.0.1
onmotion/yii2-vuejs-assets Version >=1.0.1
onmotion/yii2-babel-polyfill-assets Version *
The package onmotion/yii2-page-assessments contains the following files
Loading the files please wait ....