Download the PHP package clawrock/slack-api without Composer
On this page you can find all versions of the php package clawrock/slack-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download clawrock/slack-api
More information about clawrock/slack-api
Files in clawrock/slack-api
Package slack-api
Short Description Slack Integration
License Apache-2.0
Homepage http://clawrock.com/
Informations about the package slack-api
Slack-API
Introduction
Slack-API lets you build simple response system for slack's slash command API.
Installation
For production make sure you have composer installed. Then run:
After installing, you need to require Composer's autoloader:
Code Examples
Basic example with anonymous function.
You can also add Guard to manage the user/team/channel permissions.
It's worth to notice that every callable object can be used in addCommand() method.
You can send messages via Incoming webhooks
Documentation
There are very well documented examples in examples/ directory. You should take a look on them.
Tests
Simply run
Requirements
Slack API requires server with SSL enabled. Please refer to the Slack's API reference to get more informations.
Contributing
If you wish to participate in the development, you may use grunt to generate the documentation files. To do so make sure you have node and npm installed.
Then run
And then to generate docs run
This will also launch unit tests.
Credits
Slack-API was initiated with generator-composer, a Yeoman generator that builds a PHP Composer project.
This project uses the following as development dependencies:
License
Author: cr-team [email protected]