PHPackages                             onmotion/yii2-survey - 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-survey

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

onmotion/yii2-survey
====================

survey module for Yii2 application

v0.1.4(6y ago)1499720[5 issues](https://github.com/onmotion/yii2-survey/issues)[2 PRs](https://github.com/onmotion/yii2-survey/pulls)MITPHPPHP &gt;=5.5.0

Since Oct 18Pushed 6y ago6 watchersCompare

[ Source](https://github.com/onmotion/yii2-survey)[ Packagist](https://packagist.org/packages/onmotion/yii2-survey)[ RSS](/packages/onmotion-yii2-survey/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (12)Versions (9)Used By (0)

Survey module for Yii2 application
----------------------------------

[](#survey-module-for-yii2-application)

[![Latest Stable Version](https://camo.githubusercontent.com/1506d2f47d699b29f634bd70f87210267f8a072c14dbd6c6535ee1778c7e63c0/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6d6f74696f6e2f796969322d7375727665792f762f737461626c65)](https://packagist.org/packages/onmotion/yii2-survey)[![Total Downloads](https://camo.githubusercontent.com/4fa8d42e77a1bce7b885d850cb15cb522e35da966a1e6a532912d72bd8fdd512/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6d6f74696f6e2f796969322d7375727665792f646f776e6c6f616473)](https://packagist.org/packages/onmotion/yii2-survey)[![Monthly Downloads](https://camo.githubusercontent.com/07c29931a35c6292d81d9ed326c84d17ea8e79f15dbd4f9c57159654ec07469c/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6d6f74696f6e2f796969322d7375727665792f642f6d6f6e74686c79)](https://packagist.org/packages/onmotion/yii2-survey)[![License](https://camo.githubusercontent.com/2e64fd9dd2a4daa0cd57975819aae89da7978e27d4a607f034ab0ea818d2595b/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6d6f74696f6e2f796969322d7375727665792f6c6963656e7365)](https://packagist.org/packages/onmotion/yii2-survey)

> ! Note: the module under active developing, so it may have vary errors and unstable work. Highly appreciate your PR.

[![fluent](https://github.com/onmotion/yii2-survey/raw/docs/examples/front-short.png?raw=true)](https://github.com/onmotion/yii2-survey/blob/docs/examples/front-short.png?raw=true)

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

[](#installation)

- Just run:

    composer require onmotion/yii2-survey

or add

```
"onmotion/yii2-survey": "*"

```

to the require section of your composer.json file.

- apply migration:

```
php yii migrate --migrationPath=@vendor/onmotion/yii2-survey/migrations
```

- Define module to your config:

```
'modules' => [
//...
    'survey' => [
        'class' => '\onmotion\survey\Module',
        'params' => [
            'uploadsUrl' => 'http://advanced-frontend.lh/uploads/survey/', // full URL of the folder where the images will be uploaded.
           // 'uploadsUrl' => '/uploads/survey/', // or for basic
            'uploadsPath' => '@frontend/web/uploads/survey/', // absolute path to the folder where images will be saved.
        ],
//            'as access' => [
//                'class' => AccessControl::class,
//                'except' => ['default/done'],
//                'only' => ['default*'],
//                'rules' => [
//                    [
//                        'allow' => true,
//                        'roles' => ['survey'],
//                    ],
//                ],
//            ],
    ],
//...
]
```

don't forget change your own params.

Usage
-----

[](#usage)

If you are using the Yii basic template, you must manually define `$controllerNamespace` for module.

*onmotion\\survey\\controllers* - backend (admin/create/edit surveys)

*onmotion\\survey\\widgetControllers* - default (for widget)

Now go to `/survey` in your backend and create a survey.

[![fluent](https://github.com/onmotion/yii2-survey/raw/docs/examples/back-list.png?raw=true)](https://github.com/onmotion/yii2-survey/blob/docs/examples/back-list.png?raw=true)

After that you can select Survey entities and show it for user, for example:

```
echo \onmotion\survey\Survey::widget([
   'surveyId' => 1
]);
```

[![fluent](https://github.com/onmotion/yii2-survey/raw/docs/examples/front.png?raw=true)](https://github.com/onmotion/yii2-survey/blob/docs/examples/front.png?raw=true)

Admin:

[![fluent](https://github.com/onmotion/yii2-survey/raw/docs/examples/back-create.png?raw=true)](https://github.com/onmotion/yii2-survey/blob/docs/examples/back-create.png?raw=true)

[![fluent](https://github.com/onmotion/yii2-survey/raw/docs/examples/back-review.png?raw=true)](https://github.com/onmotion/yii2-survey/blob/docs/examples/back-review.png?raw=true)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~84 days

Total

5

Last Release

2434d ago

### 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 (8 commits)")[![hguenot](https://avatars.githubusercontent.com/u/2578010?v=4)](https://github.com/hguenot "hguenot (7 commits)")[![IvandaNothabeer](https://avatars.githubusercontent.com/u/1829066?v=4)](https://github.com/IvandaNothabeer "IvandaNothabeer (2 commits)")[![marcinmisiak](https://avatars.githubusercontent.com/u/10694258?v=4)](https://github.com/marcinmisiak "marcinmisiak (1 commits)")

---

Tags

pollsurveyyii2-extensionyii2-modulesyii2-surveyyii2extensionmodulewidgetsurveypolls

### Embed Badge

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

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

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[bizley/contenttools

ContentTools editor implementation for Yii 2.

8016.7k](/packages/bizley-contenttools)[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)
