xteam/highfiveslackbundle

This bundle counts how many high fives have been published on slack

dev-master 2015-07-23 08:58 UTC

This package is not auto-updated.

Last update: 2024-12-11 09:51:59 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