Download the PHP package vivifyideas/slack-api without Composer
On this page you can find all versions of the php package vivifyideas/slack-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vivifyideas/slack-api
More information about vivifyideas/slack-api
Files in vivifyideas/slack-api
Informations about the package slack-api
Laravel 6 and Lumen - Slack API
This package provides a simple way to use Slack API.
Instalation
composer require vivifyideas/slack-api
Instalation on Laravel 5
Add to config/app.php
:
The ::class notation is optional.
and add the Facades to your aliases, if you need it
The ::class notation is optional.
Instalation on Lumen
Add that line on bootstrap/app.php
:
If you want to use facades, add this lines on bootstrap/app.php
Otherwise, just use the singleton shortcuts:
Configuration
configure your slack team token in config/services.php
By default all api methods will return objects, to change it to associative array first publish slack-api config, and then set response_to_assoc_array
to true
Usage
Using Dependency Injection
All Injectable Contracts:
Generic API
VivifyIdeas\SlackApi\Contracts\SlackApi
Allows you to do generic requests to the api with the following http verbs:
get
, post
, put
, patch
, delete
... all allowed api methods you could see here: Slack Web API Methods.
And is also possible load a SlackMethod contract:
Channels API
VivifyIdeas\SlackApi\Contracts\SlackChannel
Allows you to operate channels:
invite
, archive
, rename
, join
, kick
, setPurpose
...
Chat API
VivifyIdeas\SlackApi\Contracts\SlackChat
Conversations API
VivifyIdeas\SlackApi\Contracts\SlackConversation
Allows you to send, update and delete messages with methods:
delete
, message
, update
.
Files API
VivifyIdeas\SlackApi\Contracts\SlackFile
Allows you to send, get info, delete, or just list files:
info
, lists
, upload
, delete
.
Groups API
VivifyIdeas\SlackApi\Contracts\SlackGroup
Same methods of the SlackChannel, but that operates with groups and have adicional methods:
open
, close
, createChild
Instant Messages API (Direct Messages)
VivifyIdeas\SlackApi\Contracts\SlackInstantMessage
Allows you to manage direct messages to your team members.
Real Time Messages API
VivifyIdeas\SlackApi\Contracts\SlackRealTimeMessage
Allows you list all channels and user presence at the moment.
Search API
VivifyIdeas\SlackApi\Contracts\SlackSearch
Find messages or files.
Stars API
VivifyIdeas\SlackApi\Contracts\SlackStar
List all of starred itens.
Team API
VivifyIdeas\SlackApi\Contracts\SlackTeam
Get information about your team.
Users API
VivifyIdeas\SlackApi\Contracts\SlackUser
Get information about an user on your team or just check your presence ou status.
Users Admin API
VivifyIdeas\SlackApi\Contracts\SlackUserAdmin
Invite new members to your team.
OAuth API
VivifyIdeas\SlackApi\Contracts\SlackOAuth
Methods in oauth slack api namespace.
OAuthV2 API
VivifyIdeas\SlackApi\Contracts\SlackOAuthV2
Methods in oauth v2 slack api namespace.
License
All versions of slack-api with dependencies
illuminate/support Version ~7.0
illuminate/cache Version ~7.0
guzzlehttp/guzzle Version ~5.3|~6.0