Download the PHP package suspectdoubloon/slack-api without Composer
On this page you can find all versions of the php package suspectdoubloon/slack-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download suspectdoubloon/slack-api
More information about suspectdoubloon/slack-api
Files in suspectdoubloon/slack-api
Package slack-api
Short Description PHP wrapper for the Slack Events API and some other things I find necessary for my project
License MIT
Informations about the package slack-api
About Slack-API
This project is a simple wrapper written in PHP using Guzzle 6 to request API endpoints as defined at Slack Api documentation. This is still a work in progress at the current point in the time, and I will filling the missing areas as I go along and when I need them in my own projects. So use at your own risk.
What has been implemented
Currently I have implemented the methods under the following headers found in the Slack Api documentation.
Web
Namespace
- API
- Bots
- Channels
- Chat
- Group
- IM
- MPIM
- Users
Including in your project
composer require suspectdoubloon/slack-api
and don't forget to include the autoload file in your project
include('vendor/autoload.php');
All methods in this package use the results from json_decode
.
Once you have generated the access token you can now use any of the classes located under the web namespace. See above for the currently available methods. Below is an example of getting a channel list.
All methods will have the same number of arguments as the methods are defined as the slack API. The only exception is endpoints which send messages. Which will use an array for the argument list.
License
This package is open-sourced software licensed under the MIT license.