2017 © Pedro PelĂĄez
 

symfony-bundle poll-bundle

A simple poll bundle for symfony2

image

tito/poll-bundle

A simple poll bundle for symfony2

  • Friday, December 29, 2017
  • by TiiToo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 13 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

A simple poll bundle for symfony2., (*1)


This version is for Symfony 2.4.x projects., (*2)

For Symfony 2.0.x projects, you must use a 1.x release of this bundle., (*3)


Features

  • List of all published polls
  • Uses Ajax for voting and showing results
  • Results displayed using bar graphs
  • Uses cookies to prevent multiple voting
  • A backend interface
  • Easily overridable

Screenshots:, (*4)

Note: The backend doesn't come with an authentication system., (*5)

TODO:, (*6)

  • Functional tests
  • Rewrite "Overriding the bundle" documentation for symfony 2.4.x

Installation

1. Add this to your composer.json: ``` yml "require": { "prism/poll-bundle": "dev-master" }, (*7)


**2.** Run a composer update: ``` bash $ composer update

3. Register the bundle in app/AppKernel.php:, (*8)

(You also need to add StofDoctrineExtensionsBundle for the timestampable and sluggable features), (*9)

``` php $bundles = array( // ... new Prism\PollBundle\PrismPollBundle(), new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(), );, (*10)


**4.** Import routing: ``` yaml # app/config/routing.yml PrismPollBundle_backend: prefix: /poll/backend resource: "@PrismPollBundle/Resources/config/routing/backend.yml" PrismPollBundle_frontend: prefix: /poll resource: "@PrismPollBundle/Resources/config/routing/frontend.yml"

5. Add configuration for DoctrineExtensions:, (*11)

``` yaml, (*12)

app/config/config.yml

stof_doctrine_extensions: orm: default: timestampable: true sluggable: true, (*13)


**6.** Generate the tables: ``` bash $ app/console doctrine:schema:update --force

This will create the PrismPoll and PrismPollOpinion tables, (*14)

Overriding the bundle

TODO: rewrite the documentation for Symfony 2.4.x projects., (*15)

You can still get the general idea by reading the documentation for Symfony 2.0.x projects., (*16)

The Versions

29/12 2017

dev-master

9999999-dev https://github.com/TiiToo/PrismPollBundle

A simple poll bundle for symfony2

  Sources   Download

MIT

The Requires

 

by Émilie Marchand

poll question vote

29/12 2017

dev-symfony-2.4.x

dev-symfony-2.4.x https://github.com/emiliemarchand/PrismPollBundle

A simple poll bundle for symfony2

  Sources   Download

MIT

The Requires

 

by Émilie Marchand

poll question vote

19/04 2014

v2.0

2.0.0.0 https://github.com/emiliemarchand/PrismPollBundle

A simple poll bundle for symfony2

  Sources   Download

MIT

The Requires

 

by Émilie Marchand

poll question vote