PHPackages                             davidjeddy/yii2-poll - 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. [Framework](/categories/framework)
4. /
5. davidjeddy/yii2-poll

ArchivedLibrary[Framework](/categories/framework)

davidjeddy/yii2-poll
====================

Widget to create custom polls for Yii 2.x framework.

3.x-dev(2mo ago)33151BSD-3-ClausePHPPHP ^7

Since Apr 19Pushed 2mo agoCompare

[ Source](https://github.com/davidjeddy/yii2-poll)[ Packagist](https://packagist.org/packages/davidjeddy/yii2-poll)[ RSS](/packages/davidjeddy-yii2-poll/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (18)Used By (0)

\[!WARNING\] **⚠️ This project has been archived and is no longer maintained. ⚠️**

Github has shown it does not respect its users. Other have said it better than I can.

- [https://www.theregister.com/2022/06/30/software\_freedom\_conservancy\_quits\_github/](https://www.theregister.com/2022/06/30/software_freedom_conservancy_quits_github/)
-
-
-
- [https://dev.to/alanwest/how-to-actually-migrate-from-github-to-codeberg-without-losing-your-mind-33bf&gt;](https://dev.to/alanwest/how-to-actually-migrate-from-github-to-codeberg-without-losing-your-mind-33bf%3E)

> Development has moved to Codeberg: **➡️ **
>
> Please update your remotes:
>
> ```
> git remote set-url origin https://codeberg.org/DavidJEddy/yii2-poll
> ```

---

yii2-poll
=========

[](#yii2-poll)

Badges
------

[](#badges)

[![SensioLabsInsight](https://camo.githubusercontent.com/93aca822138e00211b567b8e69e34351088d4c8fdd2dbc3ae4d8444d85c9bec6/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f65343566363663622d383731382d346465652d393539372d6434306237343561656232392f6d696e692e706e67)](https://insight.sensiolabs.com/projects/e45f66cb-8718-4dee-9597-d40b745aeb29)[![Latest Stable Version](https://camo.githubusercontent.com/28c4fda5f4b858f303b36ee627e15f9e1fdb36e5e6991c530396e6d26dea99ae/68747470733a2f2f706f7365722e707567782e6f72672f64617669646a656464792f796969322d706f6c6c2f762f737461626c65)](https://packagist.org/packages/davidjeddy/yii2-poll)[![Total Downloads](https://camo.githubusercontent.com/8b69aebf08c7a084b29b106d83f5c772efdb196a111c693db783cdecc91e7444/68747470733a2f2f706f7365722e707567782e6f72672f64617669646a656464792f796969322d706f6c6c2f646f776e6c6f616473)](https://packagist.org/packages/davidjeddy/yii2-poll)[![Latest Unstable Version](https://camo.githubusercontent.com/8a33acb3bf61f4ef4b27a496ea1b71a900b1ec1010ee7d419b4b252106e355b4/68747470733a2f2f706f7365722e707567782e6f72672f64617669646a656464792f796969322d706f6c6c2f762f756e737461626c65)](https://packagist.org/packages/davidjeddy/yii2-poll)[![License](https://camo.githubusercontent.com/f89b7ff736503f31c5dcf8da27b917524427ff1e48e3c90b100b1188459a4a74/68747470733a2f2f706f7365722e707567782e6f72672f64617669646a656464792f796969322d706f6c6c2f6c6963656e7365)](https://packagist.org/packages/davidjeddy/yii2-poll)[![Monthly Downloads](https://camo.githubusercontent.com/ed4f19cea4ddac740df756a46adab832781885f7f353f4ce07e6c425148636cb/68747470733a2f2f706f7365722e707567782e6f72672f64617669646a656464792f796969322d706f6c6c2f642f6d6f6e74686c79)](https://packagist.org/packages/davidjeddy/yii2-poll)[![Daily Downloads](https://camo.githubusercontent.com/9c4cd6dca3473a5a60eec59525b5450a9b9ed919784daeba284bdd6f69f505b6/68747470733a2f2f706f7365722e707567782e6f72672f64617669646a656464792f796969322d706f6c6c2f642f6461696c79)](https://packagist.org/packages/davidjeddy/yii2-poll)

About
-----

[](#about)

Create a basic custom polls for Yii 2.x.

Installing
==========

[](#installing)

- Run `composer require davidjeddy/yii2-poll` on the terminal in your {project root}
    - OR add `"davidjeddy/yii2-poll": "~2"` to your projects composer.json in the "required": \[...\] section then run `composer update`.
- Run migration via Yii's migration command providing `php ./console/yii migrate/up --migrationPath=./vendor/davidjeddy/yii2-poll/migrations`

Usage
=====

[](#usage)

Basic:

```
    echo \davidjeddy\poll\PollWidget::widget([
        'questionText'  => \Yii::t('poll', 'Do you like PHP?'),
        'answerOptions' => ['Yes', 'No'],
    ]);
```

Advanced:

```
    echo \davidjeddy\poll\PollWidget::widget([
        'questionText'  => \Yii::t('poll', 'Do you like PHP?'),
        'answerOptions' => ['Yes', 'No'],
        'params'        => [
            'backgroundLinesColor' => '#DCDCDC',// html hex
            'linesColor'           => '#DC0079' // html hex
            'linesHeight'          => 20,       // in pixels
            'maxLineWidth'         => 200,      // in pixels
        ]
    ]);
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance86

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~282 days

Recently: every ~765 days

Total

15

Last Release

73d ago

Major Versions

2.0.15 → 3.x-dev2026-04-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c87b153a146e26efc71045db2c227c6eb3a8b2e3b1eb29884491fa550300cf5?d=identicon)[davidjeddy](/maintainers/davidjeddy)

---

Top Contributors

[![davidjeddy](https://avatars.githubusercontent.com/u/6232455?v=4)](https://github.com/davidjeddy "davidjeddy (1 commits)")

---

Tags

frameworkyii2widgetpoll

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/davidjeddy-yii2-poll/health.svg)

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

###  Alternatives

[yiisoft/yii2-app-advanced

Yii 2 Advanced Project Template

1.7k960.6k5](/packages/yiisoft-yii2-app-advanced)[yiisoft/yii2-app-basic

Yii 2 Basic Project Template

6761.8M8](/packages/yiisoft-yii2-app-basic)[skeeks/cms

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

13725.7k53](/packages/skeeks-cms)[tecnocen/yii2-formgenerator

Yii 2 Library to configure form generator

135.7k](/packages/tecnocen-yii2-formgenerator)

PHPackages © 2026

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