Download the PHP package massimo-filippi/slack-module without Composer
On this page you can find all versions of the php package massimo-filippi/slack-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download massimo-filippi/slack-module
More information about massimo-filippi/slack-module
Files in massimo-filippi/slack-module
Package slack-module
Short Description ZF3 module for Slack communication
License MIT
Homepage https://github.com/massimo-filippi/slack-module
Informations about the package slack-module
slack-module
ZF3 module for Slack communication
Introduction
There will be more info soon...
Installation
1. Install via Composer
Install the latest stable version via Composer:
Install the latest develop version via Composer:
2. Enable module in your application
Composer should enable MassimoFilippi\SlackModule
in your project automatically during installation.
In case it does not, you can enable module manually by adding value 'MassimoFilippi\SlackModule'
to array in file config/modules.config.php
. At the end, it should look like PHP array below.
3. Set up your configuration
You have to set settings for SlackService, otherwise you will not be able to use it.
Here is what I have in my config/autoload/local.php
file.
Usage
Somewhere in business logic classes.
Methods
- Create message:
- Create attachment:
- See Slack documentation: https://api.slack.com/docs/message-attachments
-
Create attachment field:
- See Slack documentation: https://api.slack.com/docs/message-attachments
- Create attachment action:
- See Slack documentation: https://api.slack.com/docs/message-attachments
More resources
- Slack - Messages: https://api.slack.com/docs/messages
- Slack - Message attachments: https://api.slack.com/docs/message-attachments
- Slack - Message guidelines: https://api.slack.com/best-practices/message-guidelines
- Slack - Message builder: https://api.slack.com/docs/messages/builder