Download the PHP package hybridlogic/slack without Composer
On this page you can find all versions of the php package hybridlogic/slack. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hybridlogic/slack
More information about hybridlogic/slack
Files in hybridlogic/slack
Package slack
Short Description A library for working with Slack.
License MIT
Homepage https://github.com/Dachande663/PHP-Slack
Informations about the package slack
PHP Slack
A library of useful classes for working with Slack.
At the moment this library is mainly focused on slash commands but may grow in the future. It supports defining multiple commands and matching actions within them.
0.0 Table of Contents
- Introduction
- Install
- Examples
- Running Tests
- Troubleshooting
- Changelog
1.0 Introduction
Slack is a cross-platform messaging platform that offers multiple integrations with third-party services. One of the most useful of these integrations is in the form of slash commands e.g.
/cinema movies tonight
Slash commands make a HTTP POST request to a server and display the result to the user. This library aims to make dealing with these commands a bit simpler, including:
- Parsing the incoming data
- Matching text against command patterns
- Ensuring security tokens match
- Filtering available teams, channels and users
- Serving responses
- Handling delayed responses
At the moment there is no support for the Slack Web API or RTM as these have been done elsewhere by others. This library lets you get a slash command online quickly and easily. Look in the examples directory for more info.
2.0 Installation
PHP Slack is available on Composer via Packagist. To install simply run:
composer require hybridlogic/slack
Alternatively clone the git repository and use a PSR-4 compatible autoloader.
3.0 Examples
4.0 Running Tests
phpunit tests
5.0 Troubleshooting
Make sure you meet the requirements for running a slash command host i.e. publicly accessible and served over HTTPS.
6.0 Changelog
- [2016-02-21] Initial release