PHPackages                             abstracteverything/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. abstracteverything/poll

ActiveLibrary

abstracteverything/poll
=======================

Poll package for Laravel

3471[1 PRs](https://github.com/AbstractEverything/poll/pulls)PHP

Since Dec 4Pushed 5y ago2 watchersCompare

[ Source](https://github.com/AbstractEverything/poll)[ Packagist](https://packagist.org/packages/abstracteverything/poll)[ RSS](/packages/abstracteverything-poll/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/ba8ee417da716539e2d43bd8d890677eb8d1eac4db4ba3e398ba091679aa450b/68747470733a2f2f7472617669732d63692e6f72672f416273747261637445766572797468696e672f706f6c6c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/AbstractEverything/poll)

Poll Package for Laravel 5.5
============================

[](#poll-package-for-laravel-55)

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

[](#installation)

Run `composer require 'abstracteverything/poll'`

OR add:

```
{
    "require": {
        "abstracteverything/poll": "dev-master"
    }
}

```

to your composer.json file and run `composer update`.

Setup
-----

[](#setup)

Add `AbstractEverything\Poll\PollServiceProvider` to your providers array in `config/app.php`.

Optionally register the following two facades in `config/app.php`:

- `'Poll' => AbstractEverything\Poll\Facades\Poll::class,`
- `'Vote' => AbstractEverything\Poll\Facades\Vote::class,`

Publishing assets
-----------------

[](#publishing-assets)

To publish package assets run: `php artisan vendor:publish` and choose `AbstractEverything\Poll\PollServiceProvider` this will publish the following files:

- Views to: `resources/vendor/abstracteverything/poll`
- Config to: `config/poll.php`
- Migrations to `database/migrations`

Run the database migrations by running `php artisan migrate`

Setting up the poll user
------------------------

[](#setting-up-the-poll-user)

The user class needs to implement the `AbstractEverything\Poll\Extras\PollUserInterface` interface and use the `AbstractEverything\Poll\Extras\PollUser` trait.

Overriding default routes
-------------------------

[](#overriding-default-routes)

The package ships with a default set of routes:

- `/polls` - polls.index (GET)
- `/polls` - polls.store (POST)
- `/polls/create` - polls.create (GET)
- `/polls/{poll}` - polls.show (GET)
- `/polls/{poll}` - polls.destroy (GET)
- `/votes` - votes.store (POST)

You can override these by redefining a route with the same name:

```
Route::get('custom_create_page', [
    'as' => 'polls.create',
    'uses' => '\AbstractEverything\Poll\Http\Controllers\PollController@create',
]);

```

Middleware configuration
------------------------

[](#middleware-configuration)

Routes for creating, destroying polls can be [protected by middleware](https://laravel.com/docs/5.5/middleware). In `config/poll.php` you can set which middleware should be used.

Configuration
-------------

[](#configuration)

Other configuration options are avaliable in `config/poll.php`.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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/34428e679b8b2ac76d50a73914d7214c2e957798cb157f183f60003dd61a263a?d=identicon)[AbstractEverything](/maintainers/AbstractEverything)

---

Top Contributors

[![AbstractEverything](https://avatars.githubusercontent.com/u/14864399?v=4)](https://github.com/AbstractEverything "AbstractEverything (13 commits)")

### Embed Badge

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

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

PHPackages © 2026

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