Download the PHP package craftyx/slack-api without Composer
On this page you can find all versions of the php package craftyx/slack-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package slack-api
Slack API for Laravel 5
This package provides a simple way to use Slack API. It's based on the excellent Vluzrmos package, but it's compatible with Guzzle6
Instalation
composer require craftyx/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.
Configuration
configure your slack team token in config/services.php
Usage
Using Dependency Injection
All Injectable Contracts:
Generic API
Craftyx\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
Craftyx\SlackApi\Contracts\SlackChannel
Allows you to operate channels:
invite
, archive
, rename
, join
, kick
, setPurpose
...
Chat API
Craftyx\SlackApi\Contracts\SlackChat
Allows you to send, update and delete messages with methods:
delete
, message
, update
.
Files API
Craftyx\SlackApi\Contracts\SlackFile
Allows you to send, get info, delete, or just list files:
info
, lists
, upload
, delete
.
Groups API
Craftyx\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)
Craftyx\SlackApi\Contracts\SlackInstantMessage
Allows you to manage direct messages to your team members.
Real Time Messages API
Craftyx\SlackApi\Contracts\SlackRealTimeMessage
Allows you list all channels and user presence at the moment.
Search API
Craftyx\SlackApi\Contracts\SlackSearch
Find messages or files.
Stars API
Craftyx\SlackApi\Contracts\SlackStar
List all of starred itens.
Team API
Craftyx\SlackApi\Contracts\SlackTeam
Get information about your team.
Users API
Craftyx\SlackApi\Contracts\SlackUser
Get information about an user on your team or just check your presence ou status.
Users Admin API
Craftyx\SlackApi\Contracts\SlackUserAdmin
Invite new members to your team.
License
All versions of slack-api with dependencies
illuminate/support Version 7.*
illuminate/cache Version 7.*
guzzlehttp/guzzle Version ~5.3|~6.0