kunstmaan/voting-bundle
最新稳定版本:7.3.0
Composer 安装命令:
composer require 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
关键字:
README 文档
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.
统计信息
- 总下载量: 965
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 15
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-01-04