Download the PHP package partfire/slack-bundle without Composer
On this page you can find all versions of the php package partfire/slack-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download partfire/slack-bundle
More information about partfire/slack-bundle
Files in partfire/slack-bundle
Package slack-bundle
Short Description A set of Symfony services for use in your project to integrate with Slack API faster.
License MIT
Informations about the package slack-bundle
Slack Bundle for Symfony
A set of Symfony services for use in your project to ease integration with Slack.
This bundle depends upon the official slack SDK PHP.
Installation
Using composer you can simply require master for now until we have a stable release:
$ composer require partfire/slack-bundle:dev-master
Configuration
Add your details to your app/config/parameters.yml
file. For example:
- slack_username: refers to the name that will appear in the channel.
- slack_team: is the team name when you created your team via Slack.
- slack_testing_channel_name refers to the only channel which all messages are sent when the syfony environment is not
prod
. This is to allow us to not pollute the other channels for the production environment wehen testing etc.
Also add to your app/AppKernel.php
file:
Example Usage
Send a Message from a controller
You can also use this service from any other class by simply injecting it if you are using the Symfony DI Container. E.g. you can add the following to the services.yml for your custom class to inject the messaging service:
Service List
part_fire_slack_service
Contributing
Feel free to add more methods to the services etc and create a pull request. I will merge them in if they follow the existing structure or you teach me a better way.
All versions of slack-bundle with dependencies
symfony/framework-bundle Version ^2.7 || ^3.0 || ^4.0
threadmeup/slack-sdk Version ^1.1
symfony/console Version ^4.1
partfire/common-bundle Version dev-master