cjsdevelopment / slack
A Laravel package to post Slack Message
1.1
2016-10-11 06:13 UTC
Requires
- guzzlehttp/guzzle: ~6.0
This package is not auto-updated.
Last update: 2024-11-13 19:26:40 UTC
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");