2017 © Pedro Peláez
 

library slack-api

PHP wrapper for the Slack Events API and some other things I find necessary for my project

image

suspectdoubloon/slack-api

PHP wrapper for the Slack Events API and some other things I find necessary for my project

  • Monday, September 18, 2017
  • by suspectdoubloon
  • Repository
  • 1 Watchers
  • 0 Stars
  • 32 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

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., (*1)

What has been implemented

Currently I have implemented the methods under the following headers found in the Slack Api documentation., (*2)

Web Namespace

  • API
  • Bots
  • Channels
  • Chat
  • Group
  • IM
  • MPIM
  • Users

Including in your project

composer require suspectdoubloon/slack-api, (*3)

and don't forget to include the autoload file in your project, (*4)

include('vendor/autoload.php');, (*5)

All methods in this package use the results from json_decode., (*6)

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., (*7)

use SuspectDoubloon\Slack\Web\ChannelClient;
$channelClient = new ChannelClient($token);
$channels = $channelClient->lists(true)->channels;

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., (*8)

License

This package is open-sourced software licensed under the MIT license., (*9)

The Versions

18/09 2017

dev-master

9999999-dev

PHP wrapper for the Slack Events API and some other things I find necessary for my project

  Sources   Download

MIT

The Requires

 

by Jarrad Littleford

31/01 2017

0.0.2

0.0.2.0

PHP wrapper for the Slack Events API and some other things I find necessary for my project

  Sources   Download

MIT

The Requires

 

by Jarrad Littleford

31/01 2017

0.0.1

0.0.1.0

PHP wrapper for the Slack Events API and some other things I find necessary for my project

  Sources   Download

The Requires

 

by Jarrad Littleford