定制 xteam/highfiveslackbundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

xteam/highfiveslackbundle

Composer 安装命令:

composer require xteam/highfiveslackbundle

包简介

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

README 文档

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

统计信息

  • 总下载量: 27
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-16