定制 castlepointanime/slack-api-bundle 二次开发

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

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

castlepointanime/slack-api-bundle

最新稳定版本:0.4

Composer 安装命令:

composer require castlepointanime/slack-api-bundle

包简介

Symfony bundle for interacting with the Slack API

README 文档

README

https://travis-ci.org/castlepointanime/slack-api-bundle.svg?branch=master

This project is a Symfony bundle for interacting with the Slack.com API. The purpose is to provide an easy framework for writing bots and other tools that interact with your Slack team.

Some features this bundle provides:

  • A default route (and associated controller) that catches all Slack webhooks
  • Dispatcher service that allows services to register and listen for certain webhook events
  • Guzzle Services-based client for the main API
  • Handling for outgoing webhooks, incoming webhooks, slash commands, remote Slackbot, and the main API (RTM websockets coming soon)

Right now the project is still in development, but is almost ready for release. However, I'd still recommend taking caution when using this for your team until the 1.0 is released.

Installation

Step 0: Install Symfony

This program technically can be used without Symfony, since it only depends on certain components, but obviously if you are making a new project it will be a lot easier to just use this bundle with the Symfony standard edition.

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require castlepointanime/slack-api-bundle

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md) of the Composer documentation.

Step 2: Enable the Bundle

Then, enable the bundle by adding the following line in the app/AppKernel.php file of your project:

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new CastlePointAnime\SlackApiBundle\SlackApiBundle(),
        );

        // ...
    }

    // ...
}

Use

Documentation is still in the works. In the near future, the following links will show you how to use this bundle:

If you have any questions that you think should be answered in the documentation, file an issue on GitHub.

Contributing

All contributions are welcome. Just submit a pull request. This project is licensed under the AGPL, so all submitted code must be licensed under it (or one that is compatible with it, but that makes legal stuff confusing).

License

Copyright (C) 2015  Tyler Romeo <tylerromeo@gmail.com>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 5
  • Forks: 3
  • 开发语言: XML

其他信息

  • 授权协议: AGPL-3.0
  • 更新时间: 2015-01-27