PHPackages                             onmotion/yii2-page-assessments - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. onmotion/yii2-page-assessments

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

onmotion/yii2-page-assessments
==============================

Page assessment feature for your Yii2 application based on Vue2.

v1.1.2(6y ago)41.1k[12 PRs](https://github.com/onmotion/yii2-page-assessments/pulls)MITVuePHP &gt;=7.0.0

Since Sep 21Pushed 3y ago2 watchersCompare

[ Source](https://github.com/onmotion/yii2-page-assessments)[ Packagist](https://packagist.org/packages/onmotion/yii2-page-assessments)[ RSS](/packages/onmotion-yii2-page-assessments/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (3)Versions (29)Used By (0)

Yii2 page assessment/polls extension
====================================

[](#yii2-page-assessmentpolls-extension)

The page assessment (polls) module for Yii2 framework based on Vue2.

Language: [English](README.md), [Русский](README.ru.md)

[![Latest Stable Version](https://camo.githubusercontent.com/e82867684b8a64f4aa67f6b074de476ad4f05c4ef81298ce6fdcc7164db1e953/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6d6f74696f6e2f796969322d706167652d6173736573736d656e74732f762f737461626c65)](https://packagist.org/packages/onmotion/yii2-page-assessments)[![Total Downloads](https://camo.githubusercontent.com/21f7e445f7c894b44945f96cebb7e1f8a4e54ac31029b642fec171da9541f4ab/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6d6f74696f6e2f796969322d706167652d6173736573736d656e74732f646f776e6c6f616473)](https://packagist.org/packages/onmotion/yii2-page-assessments)[![Monthly Downloads](https://camo.githubusercontent.com/12bb5c77e2f7af85a6b897bb5ea0edab5e43c89d6822c8a8a125f2c4672c285f/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6d6f74696f6e2f796969322d706167652d6173736573736d656e74732f642f6d6f6e74686c79)](https://packagist.org/packages/onmotion/yii2-page-assessments)[![License](https://camo.githubusercontent.com/f87acff1e820ea5178c9f24707e778047341aa2c7e172831d3ebbcb1bd1a832f/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6d6f74696f6e2f796969322d706167652d6173736573736d656e74732f6c6963656e7365)](https://packagist.org/packages/onmotion/yii2-page-assessments)

*Fluent view:*

[![fluent](https://github.com/onmotion/yii2-page-assessments/raw/docs/docs/fluent.gif?raw=true)](https://github.com/onmotion/yii2-page-assessments/blob/docs/docs/fluent.gif?raw=true)

*Static (embeded in a page) view:*

[![static](https://github.com/onmotion/yii2-page-assessments/raw/docs/docs/static.gif?raw=true)](https://github.com/onmotion/yii2-page-assessments/blob/docs/docs/static.gif?raw=true)

Installation
------------

[](#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
-----

[](#usage)

You must add to your config:

```
'modules' => [
    //...
    'assessments' => [
        'class' => 'onmotion\assessments\Module',
    ],
    //...
],
```

Then you can use the widget somewhere on the page:

*Example:*

```
echo \onmotion\assessments\widget\AssessmentWidget::widget([
    'fluent' => false, // static or fluent view
   // 'timeout' => 1500 // timeout bafore appearance.
    'questions' => [
        'Is this page helpful?', // simple question
        [
            'title' => 'What do you think about it?',
            'maxValue' => 6,
          //  'allowComment' => true // allow optional comment
            'allowComment' => [1, 2, 3], // allow comment only if value is 1, 2 or 3.
          //  'model' => (new SomeActiveRecordModel),
          //  'repeat' => true, // whether to force repeat the question
          //  'afterVoteText' => [  // show comment after got a vote (string || array)
          //                    1 => 'It\'s ok! 👌',
          //                    2 => 'Could be better 😎',
          //                    3 => 'So so...',
          //                    4 => 'Very good!',
          //                    5 => 'Perfect!',
          //                ]
        ]
    ]
]);
```

Options
-------

[](#options)

optiontypedefaultdescription**fluent**boolfalsefluent or static view**questions**string || arraysee example**timeout**integer1500timeout bafore appearance**model** *(optional)*ActiveRecordnullAttach `Model::class` info with primary key**icons**array\[\]custom iconsEvents
------

[](#events)

**assessment.show** - when an assessment item appears.

**assessment.end** - when all questions are completed.

```
document.addEventListener('assessment.show', function (e) {
    console.log(e.detail);
}, false);
```

---

You can change icons as you want, for example:

```
echo \onmotion\assessments\widget\AssessmentWidget::widget([
            'fluent' => true,
            'questions' => $questions,
            'icons' => [
                    1 => '',
                    2 => '',
                    3 => '',
                    4 => '',
                    5 => '',
            ]
        ]);
```

[![icons](https://github.com/onmotion/yii2-page-assessments/raw/docs/docs/icons.png?raw=true)](https://github.com/onmotion/yii2-page-assessments/blob/docs/docs/icons.png?raw=true)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~21 days

Recently: every ~71 days

Total

15

Last Release

2499d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.5.0

v1.1.2PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e5407caa213f6975f2d554a7a9d62a443c96b3c7b854fb71622479017ee227b?d=identicon)[onmotion](/maintainers/onmotion)

---

Top Contributors

[![onmotion](https://avatars.githubusercontent.com/u/12899080?v=4)](https://github.com/onmotion "onmotion (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

assessmentpage-assessmentpollpollingpolling-moduleyii2-extensionyii2-modulesyii2-pollyii2extensionmodulewidgetRatingpollsvotesAssessmentvue2

### Embed Badge

![Health badge](/badges/onmotion-yii2-page-assessments/health.svg)

```
[![Health](https://phpackages.com/badges/onmotion-yii2-page-assessments/health.svg)](https://phpackages.com/packages/onmotion-yii2-page-assessments)
```

###  Alternatives

[kartik-v/yii2-widget-rating

A Yii2 widget for the simple yet powerful bootstrap-star-rating plugin with fractional rating support (sub repo split from yii2-widgets)

444.1M8](/packages/kartik-v-yii2-widget-rating)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
