superbuddy/slack 问题修复 & 功能扩展

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

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

superbuddy/slack

Composer 安装命令:

composer require superbuddy/slack

包简介

A Laravel package to post Slack Message

README 文档

README

A Laravel package for sending Messages to Slack

Usage

composer

Require it:

  • "CJSDevelopment/slack" : "dev-master"

app.php

Add the following data:

ServiceProvider

  • 'CJSDevelopment\SlackServiceProvider'

Facade

  • 'Slack' => 'CJSDevelopment\Slack',

Deploy / Update

Execute the following commands in your console:

  • sudo composer selfupdate
  • sudo composer update
  • sudo php artisan vendor:publish

Config

After executing the vendor:publish command you will find a config file in the Laravel config folder. Fill the Mandatory fields, check the optional. Don't forget!! Create a webhook URL http://your-domain.slack.com/services/

Usage in your code:

Slack::sendMessage("Message!", "#channel");

Options

Parameter Position Description Option(s) Default
1 Message to send none none
2 Channel or Username to send @username of #channel #general
3 Username of the Bot Any name you want to give the BOT CJSDevelopment Slack Bot
4 Icon The icon you want to use for your BOT as avatar 👻

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-08-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固