kunstmaan/voting-bundle

A lot of sites enable users to vote or participate in actions where Facebook Likes are counted and rewarded. The KunstmaanVotingBundle was created to allow a faster setup of that kind of actions and will provide a backlog of votes your users casted. That way you can look for irregularities and autom

Installs: 939

Dependents: 0

Suggesters: 0

Security: 0

Stars: 14

Watchers: 18

Forks: 5

Type:symfony-bundle

7.1.1 2024-03-31 20:24 UTC

README

A lot of sites enable users to vote or participate in actions where Facebook Likes are counted and rewarded. The KunstmaanVotingBundle was created to allow a faster setup of that kind of actions and will provide a backlog of votes your users casted. That way you can look for irregularities and automatically stop campaigns when their deadline has expired. It will provice support for votes on your site only but also for external social networks as Facebook so you can worry about you ideas and not how to implement it.

Installation requirements

You should be able to get Symfony 3 up and running before you can install the KunstmaanVotingBundle.

Installation instructions

Assuming you have installed composer.phar or composer binary:

$ composer require kunstmaan/voting-bundle

Add the KunstmaanVotingBundle to your AppKernel.php file:

new Kunstmaan\VotingBundle\KunstmaanVotingBundle(),

Add the KunstmaanVotingBundle to your routing.yml. Take your own routing into account, it's possible you will need to add the following code prior to your own routing configurations

KunstmaanVotingBundle:
    resource: "@KunstmaanVotingBundle/Resources/config/routing.yml"
    prefix:   /

Overwrite the KunstmaanVotingBundle config to your needs in config.yml :

kunstmaan_voting:
    actions:
        up_vote:
            default_value: 1
        down_vote:
            default_value: -1
        facebook_like:
            default_value: 1
        facebook_send:
            default_value: 1
        linkedin_share:
            default_value: 1

Use

Symfony 2.2

If you want to use this bundle for a Symfony 2.2 release, use the 2.2 branch.