Download the PHP package hampel/slack-message without Composer
On this page you can find all versions of the php package hampel/slack-message. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hampel/slack-message
More information about hampel/slack-message
Files in hampel/slack-message
Package slack-message
Short Description Standalone implementation of Laravel's SlackMessage classes from illuminate/notifications
License MIT
Homepage https://bitbucket.org/hampel/slack-message
Informations about the package slack-message
Slack Message Builder
Standalone implementation of Laravel's SlackMessage classes from illuminate/notifications.
This package provides a mechanism for generating correctly formatted Slack messages and sending them via Guzzle. Ideal for use with simple Slack inbound webhooks, but can also be used with API calls.
By Taylor Otwell and licensed under the MIT license.
Prerequisites
You will need to supply a Guzzle client (^6.0|^7.0) to send the Slack messages.
Installation
To install using composer, run the following command:
composer require hampel/slack-message
Usage
Refer to Laravel's Slack Notifications documentation for information on generating Slack messages. The syntax is largely the same as that used by Laravel, but we do not need to use Notifiable classes - we can generate and send our Slack Messages directly.
References
- Slack API documentation
- Slack API: An introduction to messages
- Laravel: Slack Notifications
- Laravel Package: laravel/slack-notification-channel