Download the PHP package cjsdevelopment/slack without Composer
On this page you can find all versions of the php package cjsdevelopment/slack. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download cjsdevelopment/slack
More information about cjsdevelopment/slack
Files in cjsdevelopment/slack
Download cjsdevelopment/slack
More information about cjsdevelopment/slack
Files in cjsdevelopment/slack
Vendor cjsdevelopment
Package slack
Short Description A Laravel package to post Slack Message
License MIT
Homepage http://chilion.nl/published-slack-for-laravel-package/
Package slack
Short Description A Laravel package to post Slack Message
License MIT
Homepage http://chilion.nl/published-slack-for-laravel-package/
Please rate this library. Is it a good library?
Informations about the package slack
Slack
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 | :ghost: |
All versions of slack with dependencies
PHP Build Version
Package Version
Requires
guzzlehttp/guzzle Version
~6.0
The package cjsdevelopment/slack contains the following files
Loading the files please wait ....