Download the PHP package mountain/laraslack without Composer
On this page you can find all versions of the php package mountain/laraslack. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mountain/laraslack
More information about mountain/laraslack
Files in mountain/laraslack
Download mountain/laraslack
More information about mountain/laraslack
Files in mountain/laraslack
Vendor mountain
Package laraslack
Short Description A simple package to automatically send alerts to a slack channel
License MIT
Homepage https://github.com/ThomasMountain/laraslack
Package laraslack
Short Description A simple package to automatically send alerts to a slack channel
License MIT
Homepage https://github.com/ThomasMountain/laraslack
Please rate this library. Is it a good library?
Informations about the package laraslack
LaraSlack
About
A Basic Slack integration for Laravel projects
Usage
Register a helper function instantiating the LaraSlack class e.g.
Required ENV
- SLACK_WEB_HOOK_URL=
- String
- The Slack web hook url
- SLACK_CHANNEL=
- String
- The channel or user to send the message to
- SLACK_USERNAME=
- String
- The username to send the message as
- SLACK_ICON=
- String
- The icon to be sent with the message (wrapped in ':' i.e :chart_with_upwards_trend:)
- SLACK_SEND=
- Boolean
- Determines wether the message will be sent
- Set to false in testing environments
Overriding Defaults
You can pass an array to the send() method to overwride the defaults specified in the .env file. The array keys are:
- channel
- message
- username
- icon
Any array keys that are not passed through will take the defaults from the config
E.G:
Remember to pass through an array key for 'message' when doing this
All versions of laraslack with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
ext-curl Version *
ext-curl Version *
The package mountain/laraslack contains the following files
Loading the files please wait ....