PHPackages                             darkperis/wcms-polls - 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. darkperis/wcms-polls

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

darkperis/wcms-polls
====================

A Laravel package to create polls on Barb CMS

045PHP

Since Mar 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/darkperis/wcms-polls)[ Packagist](https://packagist.org/packages/darkperis/wcms-polls)[ RSS](/packages/darkperis-wcms-polls/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

WCMSPolls
=========

[](#wcmspolls)

A Laravel package to manage polls on Darkpony Barb CMS

Installation:
-------------

[](#installation)

First, install the package through Composer.

```
composer require darkperis/wcms-polls
```

Publish migrations, and migrate

```
php artisan vendor:publish
php artisan migrate
```

---

### Set up the admin middleware's name

[](#set-up-the-admin-middlewares-name)

A wcmspolls\_config.php file will be added where you can put the name of the middleware used to protect the access and other things like pagination and prefix to protect your routes Add this line in the .env too

```
POLL_ADMIN_AUTH_MIDDLEWARE = auth
POLL_ADMIN_AUTH_GUARD = web
POLL_PAGINATION = 10
POLL_PREFIX = custompath
```

Manage polls via Polls dashboard
--------------------------------

[](#manage-polls-via-polls-dashboard)

FRONT END USE
-------------

[](#front-end-use)

Specify the ID of the poll

```
{{ PollWriter::draw(Darkpony\WCMSPolls\Poll::find([POLL_ID])) }}
```

### Override views

[](#override-views)

You can override the views related to the results page and both pages checkbox/radio via the same wcmspolls\_config.php file in the config folder.

#### Route of the vote action

[](#route-of-the-vote-action)

```
{{ route('poll.vote', $id) }}
```

#### Data passed to result view

[](#data-passed-to-result-view)

- $question : the question of the poll
- $options : array of objects holding (name, percent, votes).

#### Data passed to the poll checkbox/radio

[](#data-passed-to-the-poll-checkboxradio)

- $question : the question
- $options : holding the name and id of the option.

Warning - This is a private use package.
----------------------------------------

[](#warning---this-is-a-private-use-package)

Warning - Do not use outside Darkpony Digital.
----------------------------------------------

[](#warning---do-not-use-outside-darkpony-digital)

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c5dc5e20c197f810ca66ec348314d79db76bbcefa7f871d01b2e6bebd1d5532b?d=identicon)[darkperis](/maintainers/darkperis)

---

Top Contributors

[![darkperis](https://avatars.githubusercontent.com/u/9136992?v=4)](https://github.com/darkperis "darkperis (15 commits)")

### Embed Badge

![Health badge](/badges/darkperis-wcms-polls/health.svg)

```
[![Health](https://phpackages.com/badges/darkperis-wcms-polls/health.svg)](https://phpackages.com/packages/darkperis-wcms-polls)
```

###  Alternatives

[wa72/htmlpagedom

jQuery-inspired DOM manipulation extension for Symfony's Crawler

3383.9M34](/packages/wa72-htmlpagedom)[symfony/requirements-checker

Check Symfony requirements and give recommendations

2014.7M29](/packages/symfony-requirements-checker)[symfony/polyfill-intl-messageformatter

Symfony polyfill for intl's MessageFormatter class and related functions

393.9M21](/packages/symfony-polyfill-intl-messageformatter)[nosh2/nosh2

NOSH ChartingSystem.

771.2k](/packages/nosh2-nosh2)

PHPackages © 2026

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