2017 © Pedro Peláez
 

library slack

Access your Slack Team's API through PHP objects

image

cleentfaar/slack

Access your Slack Team's API through PHP objects

  • Monday, May 30, 2016
  • by cleentfaar
  • Repository
  • 7 Watchers
  • 75 Stars
  • 334,828 Installations
  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 61 Forks
  • 21 Open issues
  • 38 Versions
  • 7 % Grown

The README.md

Slack API library Software License

Access your Slack Team's API through PHP objects., (*1)

Build Status Coverage Status Quality Score Latest Version Total Downloads, (*2)

Documentation

  • Getting started - Before you use this library, you need to generate a token or setup oAuth.
  • Installation - Information on installing this library through composer or as a git submodule.
  • Usage - A few simple examples on how to access the Slack API using this library
  • API methods - Detailed information on each of Slack's API methods and how to access them using this library's Payload classes.
  • Events - Examples for listening to events fired by the ApiClient

Features

  • Access all of Slack's API methods with dedicated payload classes (see usage documentation)
  • Payloads and responses follow the same definitions as described in the official documentation (with a few exceptions where I think it would make a better distinction).
  • Data between you and Slack is serialized using the JMS Serializer package, allowing fully spec-ed PHP objects to be used for working with the API.
  • Code has been highly abstracted to support re-use in more specific implementations (see SlackBundle)

Further reading

I've done my best to include links to the official documentation in the code where appropriate., (*3)

Still, you should really check out the API documentation of Slack yourself to get a better understanding of exactly what each API method does and what data it will return., (*4)

If you feel there is some part of this package that you would like to see documented in more detail, please don't hesitate to create an issue for it., (*5)

Contributing

Got a good idea for this project? Found a nasty bug that needs fixing? That's great! Before submitting your PR though, make sure it complies with the contributing guide to speed up the merging of your code., (*6)

Missing methods

The following methods have not yet been implemented, why not contribute and add some yourself? - files.delete* - pins.add - pins.list - pins.remove - reactions.add - reactions.get - reactions.list - reactions.remove - team.accessLogs - team.info, (*7)

* = issue/PR has been opened for this method, (*8)

  • Slack CLI - CLI application for all of the Slack API methods.
  • SlackBundle - Symfony Bundle providing integration with this library package.

Attributions

  • The Slack staff, for making an awesome product and very clean API documentation.

FAQ

Why am I getting a cURL 60 error when attempting to connect to the Slack API?

Under the hood this library uses Guzzle to connect to the Slack API, and Guzzle's default method for sending HTTP requests is cURL., (*9)

The full error code is CURLE_SSL_CACERT: Peer certificate cannot be authenticated with known CA certificates and may be due, especially on Windows or OS X, to Guzzle not being able to find an up to date CA certificate bundle on the operating system., (*10)

To fix this you first create the Guzzle client manually using an alternative CA cert bundle, or disabling peer verification (not recommended for security reasons), and pass it to the API Client., (*11)

$client = new \GuzzleHttp\Client();
$client->setDefaultOption('verify', 'C:\Program Files (x86)\Git\bin\curl-ca-bundle.crt');

// continue as normal, using the client above

$apiClient =  new ApiClient('api-token-here', $client);

If you get a different error code you can look at the list of cURL error codes, or consult the Guzzle documentation directly., (*12)

The Versions

30/05 2016

dev-fixed-bad-requirements

dev-fixed-bad-requirements http://cleentfaar.github.io/slack/

Access your Slack Team's API through PHP objects

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

18/01 2016
18/01 2016
18/01 2016
18/01 2016

dev-refactoring-round-4

dev-refactoring-round-4 http://cleentfaar.github.io/slack/

Access your Slack Team's API through PHP objects

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

18/01 2016

dev-refactoring-round-3

dev-refactoring-round-3 http://cleentfaar.github.io/slack/

Access your Slack Team's API through PHP objects

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

18/01 2016

dev-refact-pr-29

dev-refact-pr-29 http://cleentfaar.github.io/slack/

Access your Slack Team's API through PHP objects

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

01/10 2015

dev-raupies-refactorings

dev-raupies-refactorings http://cleentfaar.github.io/slack/

Access your Slack Team's API through PHP objects

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

20/09 2015
16/05 2015

0.16.1

0.16.1.0 http://cleentfaar.github.io/slack/

Access your Slack Team's API through PHP objects

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

21/02 2015

0.15.3

0.15.3.0 http://cleentfaar.github.io/slack/

Access your Slack Team's API through PHP objects

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

21/02 2015

0.15.2

0.15.2.0 http://cleentfaar.github.io/slack/

Access your Slack Team's API through PHP objects

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

18/02 2015

0.15.1

0.15.1.0 http://cleentfaar.github.io/slack/

Access your Slack Team's API through PHP objects

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

15/02 2015

0.14.5

0.14.5.0 http://cleentfaar.github.io/slack/

Access your Slack Team's API through PHP objects

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

15/02 2015

0.14.4

0.14.4.0 http://cleentfaar.github.io/slack/

Access your Slack Team's API through PHP objects

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

15/02 2015

0.14.3

0.14.3.0 http://cleentfaar.github.io/slack/

Access your Slack Team's API through PHP objects

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

14/02 2015

0.14.2

0.14.2.0 http://cleentfaar.github.io/slack/

Access your Slack Team's API through PHP objects

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

14/02 2015

0.14.1

0.14.1.0 http://cleentfaar.github.io/slack/

Access your Slack Team's API through PHP objects

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

08/02 2015
08/02 2015

0.13.1

0.13.1.0

A PHP library providing easy access to the Slack API

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

31/01 2015

0.12.3

0.12.3.0

A PHP library providing easy access to the Slack API

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

21/01 2015

0.12.2

0.12.2.0

A PHP library providing easy access to the Slack API

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

14/12 2014

0.12.1

0.12.1.0

A PHP library providing easy access to the Slack API

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

09/12 2014

0.11.4

0.11.4.0

A PHP library providing easy access to the Slack API

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

06/12 2014

0.10.3

0.10.3.0

A PHP library providing easy access to the Slack API

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

02/12 2014

0.10.1

0.10.1.0

A PHP library providing easy access to the Slack API

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

30/11 2014

0.10.0

0.10.0.0

A PHP library providing easy access to the Slack API

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api chat

05/08 2014

0.9.4

0.9.4.0

A PHP library providing integration with the Slack API and webhooks

  Sources   Download

MIT

The Requires

 

The Development Requires

api slack

18/07 2014

0.9.3

0.9.3.0

A PHP library providing integration with the Slack API and webhooks

  Sources   Download

MIT

The Requires

 

The Development Requires

api slack

17/07 2014

0.9.2

0.9.2.0

A PHP library providing integration with the Slack API and webhooks

  Sources   Download

MIT

The Requires

 

The Development Requires

api slack

17/07 2014

0.9.2b

0.9.2.0-beta

A PHP library providing integration with the Slack API and webhooks

  Sources   Download

MIT

The Requires

 

The Development Requires

api slack

17/07 2014

0.9.1

0.9.1.0

A PHP library providing integration with the Slack API and webhooks

  Sources   Download

MIT

The Requires

 

The Development Requires

api slack

02/07 2014

0.2

0.2.0.0

A PHP library providing integration with the Slack API and webhooks

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api

01/07 2014

0.1

0.1.0.0

A PHP library providing integration with the Slack API and webhooks

  Sources   Download

MIT

The Requires

 

The Development Requires

slack slack api