xteam / highfiveslackbundle
This bundle counts how many high fives have been published on slack
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- doctrine/doctrine-fixtures-bundle: 2.2.*
- szymach/c-pchart: 1.*
- xteam/slackmessengerbundle: dev-master
This package is not auto-updated.
Last update: 2024-11-13 09:25:22 UTC
README
#HighFiveSlackBundle
This is a plugin for the XTeam SlackMessage Bundle which count a number of high fives on slack. Once a week we publish a chart with statistics on slack.
Installation
Step 1: Composer require
$ php composer.phar require xteam/highfiveslackbundle "dev-master"
Step 2: Enable the bundle
Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new XTeam\HighFiveSlackBundle\XTeamHighFiveSlackBundle(), ); if (...) { // ... $bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(); }; // ... }
Step 3: Add options to parameters.yml
#app/config/parameters.yml
parameters:
# ...
slack.token: Your SLack token
xteam.highfive.message: "High five heroes! |chart|"
xteam.highfive.base_url: "http://localhost"
xteam.highfive.publish_channel: "#general"
Step 4: Add routes
#app/congig/routes.yml
x_team_slack_messenger:
resource: "@XTeamSlackMessengerBundle/Resources/config/routing.yml"
prefix: /
x_team_high_five_slack_bundle:
resource: "@XTeamHighFiveSlackBundle/Resources/config/routing.yml"
prefix: /
Notes
This bundle requires a Symfony in version higher or equal 2.7