gaguerreiro/simple-slack 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

gaguerreiro/simple-slack

Composer 安装命令:

composer require gaguerreiro/simple-slack

包简介

PHP class to help with Slack Incoming WebHooks

README 文档

README

PHP class to help with Slack Incoming WebHooks

Requirements

  • PHP 5.3 or greater

Installing via Composer

You can install the package using the Composer package manager. You can install it by running this command in your project root:

composer require gaguerreiro/simple-slack:dev-master

Usage

require_once './vendor/autoload.php';

try {

	$options = array(
      'channel' => '#general',
      'username' => 'Robot'
	);

	$ss = new SimpleSlack\Client("[YOUR TEAM ENDPOINT]", $options);
	$ss->sendMessage('Message test');

} catch (SimpleSlackException $e) {
	printf($e->getCode());
    printf($e->getMessage());
}

统计信息

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

GitHub 信息

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

其他信息

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