2017 © Pedro Peláez
 

library slack

A Laravel package to post Slack Message

image

superbuddy/slack

A Laravel package to post Slack Message

  • Monday, August 1, 2016
  • by superbuddy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Slack

A Laravel package for sending Messages to Slack, (*1)

Usage

composer

Require it:, (*2)

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

app.php

Add the following data:, (*3)

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, (*4)

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/, (*5)

Usage in your code:

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

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 :ghost:

The Versions

01/08 2016

dev-master

9999999-dev http://chilion.nl/published-slack-for-laravel-package/

A Laravel package to post Slack Message

  Sources   Download

MIT

The Requires

 

by Chilion Snoek

11/04 2016

dev-analysis-XWNvxE

dev-analysis-XWNvxE http://chilion.nl/published-slack-for-laravel-package/

A Laravel package to post Slack Message

  Sources   Download

MIT

The Requires

 

by Chilion Snoek

11/04 2016

1.0.2

1.0.2.0 http://chilion.nl/published-slack-for-laravel-package/

A Laravel package to post Slack Message

  Sources   Download

MIT

The Requires

 

by Chilion Snoek

11/04 2016

1.0.1

1.0.1.0 http://chilion.nl/published-slack-for-laravel-package/

A Laravel package to post Slack Message

  Sources   Download

MIT

The Requires

 

by Chilion Snoek