Download the PHP package spatie/interactive-slack-notification-channel without Composer
On this page you can find all versions of the php package spatie/interactive-slack-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spatie/interactive-slack-notification-channel
More information about spatie/interactive-slack-notification-channel
Files in spatie/interactive-slack-notification-channel
Package interactive-slack-notification-channel
Short Description Send interactive Slack notifications in Laravel apps
License MIT
Homepage https://github.com/spatie/interactive-slack-notification-channel
Informations about the package interactive-slack-notification-channel
Send interactive Slack notifications in Laravel apps
This package allows you to send interactive Slack notifications. Here's how such a notification could look like
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
Installation
You can install the package via composer:
Usage
In your Notifiable
classes you should add a method named routeNotificationForInteractiveSlack
that returns an array with the
API token, an optionally the channel name
Replying to message threads
Let's assume you want your application to send a Slack notification when an order gets placed. You also want any subsequent messages about the order be place in the same thread.
Using the SlackApi channels you can retrieve the API response from Slack's chat.postMessage
method. With this response
you could post messages on other events that happen on the order, such as order paid, shipped, closed, etc.
Here's an example:
In your order paid event you can have
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Freek Van der Herten
- All Contributors
Some parts of the code and readme are based on this package.
License
The MIT License (MIT). Please see License File for more information.
All versions of interactive-slack-notification-channel with dependencies
guzzlehttp/guzzle Version ^7.2
illuminate/contracts Version ^8.0|^9.0|^10.0|^11.0
illuminate/http Version ^8.0|^9.0|^10.0|^11.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0