PHPackages                             michabbb/slack - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. michabbb/slack

ActiveLibrary

michabbb/slack
==============

Access your Slack Team's API through PHP objects

0.20.1(9y ago)016MITPHPPHP &gt;=5.5

Since Jul 1Pushed 8y ago1 watchersCompare

[ Source](https://github.com/michabbb/slack)[ Packagist](https://packagist.org/packages/michabbb/slack)[ Docs](http://cleentfaar.github.io/slack/)[ RSS](/packages/michabbb-slack/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (38)Used By (0)

Slack API library [![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/cleentfaar/slack/blob/master/LICENSE.md)
=============================================================================================================================================================================================================================================================================================================================================================

[](#slack-api-library-)

Access your Slack Team's API through PHP objects.

[![Build Status](https://camo.githubusercontent.com/4713faf27941b1ce035f9cfa479a60eb595c577859ab526d065d32f4e0f50008/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636c65656e74666161722f736c61636b2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/cleentfaar/slack)[![Coverage Status](https://camo.githubusercontent.com/76e0321a4087f3817c648417faa58ac61fa62ae5eab7adce7c13bbf9feedd70f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f636c65656e74666161722f736c61636b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/cleentfaar/slack/code-structure)[![Quality Score](https://camo.githubusercontent.com/339102b97cae3962a7eee4311788d23a34f81e3370ed209dac9cfb35fd1edc3e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f636c65656e74666161722f736c61636b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/cleentfaar/slack)[![Latest Version](https://camo.githubusercontent.com/c1686bf16356eda6e19b207d9a6b682496f36ea6d1c15df05c5ef11b0008b3ab/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f636c65656e74666161722f736c61636b2e7376673f7374796c653d666c61742d737175617265)](https://github.com/cleentfaar/slack/releases)[![Total Downloads](https://camo.githubusercontent.com/d536dcdb2a5a87dccb39683b6cbd15709e284de9fbfd1206109ece66ed990f29/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c65656e74666161722f736c61636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cleentfaar/slack)

### Documentation

[](#documentation)

- [Getting started](https://github.com/cleentfaar/slack/blob/master/src/CL/Slack/Resources/doc/getting-started.md) - Before you use this library, you need to generate a token or setup oAuth.
- [Installation](https://github.com/cleentfaar/slack/blob/master/src/CL/Slack/Resources/doc/installation.md) - Information on installing this library through composer or as a git submodule.
- [Usage](https://github.com/cleentfaar/slack/blob/master/src/CL/Slack/Resources/doc/usage.md) - A few simple examples on how to access the Slack API using this library
- [API methods](https://github.com/cleentfaar/slack/blob/master/src/CL/Slack/Resources/doc/methods/index.md) - Detailed information on each of Slack's API methods and how to access them using this library's `Payload` classes.
- [Events](https://github.com/cleentfaar/slack/blob/master/src/CL/Slack/Resources/doc/events.md) - Examples for listening to events fired by the `ApiClient`

### Features

[](#features)

- Access all of Slack's API methods with dedicated payload classes (see [usage documentation](https://github.com/cleentfaar/slack/blob/master/src/CL/Slack/Resources/doc/usage.md))
- Payloads and responses follow the same definitions as described in the [official documentation](https://api.slack.com) (with a few exceptions where I think it would make a better distinction).
- Data between you and Slack is serialized using the [JMS Serializer](http://jmsyst.com/libs/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](https://github.com/cleentfaar/CLSlackBundle))

### Further reading

[](#further-reading)

I've done my best to include links to the official documentation in the code where appropriate.

Still, you should really check out the [API documentation](https://api.slack.com/) of Slack yourself to get a better understanding of exactly what each API method does and what data it will return.

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.

### Contributing

[](#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](https://github.com/cleentfaar/slack/blob/master/src/CL/Slack/Resources/doc/contributing.md) to speed up the merging of your code.

### Missing methods

[](#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

\* = issue/PR has been opened for this method

### Related packages

[](#related-packages)

- [Slack CLI](https://github.com/cleentfaar/slack-cli) - CLI application for all of the Slack API methods.
- [SlackBundle](https://github.com/cleentfaar/CLSlackBundle) - Symfony Bundle providing integration with this library package.

### Attributions

[](#attributions)

- The [Slack](https://slack.com/) staff, for making an awesome product and very clean API documentation.

### FAQ

[](#faq)

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

[](#why-am-i-getting-a-curl-60-error-when-attempting-to-connect-to-the-slack-api)

Under the hood this library uses [Guzzle](https://github.com/guzzle/guzzle) to connect to the Slack API, and Guzzle's default method for sending HTTP requests is cURL.

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](http://docs.guzzlephp.org/en/latest/faq.html#why-am-i-getting-an-ssl-verification-error).

To fix this you first create the Guzzle client manually using an alternative CA cert bundle, or [disabling peer verification](http://guzzle.readthedocs.org/en/latest/clients.html#verify) (not recommended for security reasons), and pass it to the API Client.

```
$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](http://curl.haxx.se/libcurl/c/libcurl-errors.html), or consult the [Guzzle documentation](http://docs.guzzlephp.org/en/latest/) directly.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 56.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~25 days

Recently: every ~95 days

Total

29

Last Release

3630d ago

PHP version history (2 changes)0.9.4PHP &gt;=5.4

0.17.1PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea63e34d79d9383a876c7c107f9175746dea8a8b48974a797e39430e135f16a8?d=identicon)[macropage](/maintainers/macropage)

---

Top Contributors

[![cleentfaar](https://avatars.githubusercontent.com/u/795661?v=4)](https://github.com/cleentfaar "cleentfaar (33 commits)")[![agentsib](https://avatars.githubusercontent.com/u/1577055?v=4)](https://github.com/agentsib "agentsib (6 commits)")[![michabbb](https://avatars.githubusercontent.com/u/3524595?v=4)](https://github.com/michabbb "michabbb (5 commits)")[![n1c](https://avatars.githubusercontent.com/u/284075?v=4)](https://github.com/n1c "n1c (2 commits)")[![carsso](https://avatars.githubusercontent.com/u/666182?v=4)](https://github.com/carsso "carsso (2 commits)")[![hashnz](https://avatars.githubusercontent.com/u/2280579?v=4)](https://github.com/hashnz "hashnz (2 commits)")[![stefanbraspenning](https://avatars.githubusercontent.com/u/5555517?v=4)](https://github.com/stefanbraspenning "stefanbraspenning (1 commits)")[![adrienbrault](https://avatars.githubusercontent.com/u/611271?v=4)](https://github.com/adrienbrault "adrienbrault (1 commits)")[![Zxurian](https://avatars.githubusercontent.com/u/573371?v=4)](https://github.com/Zxurian "Zxurian (1 commits)")[![arendjantetteroo](https://avatars.githubusercontent.com/u/713066?v=4)](https://github.com/arendjantetteroo "arendjantetteroo (1 commits)")[![BallisticPain](https://avatars.githubusercontent.com/u/796026?v=4)](https://github.com/BallisticPain "BallisticPain (1 commits)")[![mathielen](https://avatars.githubusercontent.com/u/1571485?v=4)](https://github.com/mathielen "mathielen (1 commits)")[![NoUseFreak](https://avatars.githubusercontent.com/u/879864?v=4)](https://github.com/NoUseFreak "NoUseFreak (1 commits)")[![salt-lick](https://avatars.githubusercontent.com/u/3297736?v=4)](https://github.com/salt-lick "salt-lick (1 commits)")

---

Tags

slackchatslack-api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/michabbb-slack/health.svg)

```
[![Health](https://phpackages.com/badges/michabbb-slack/health.svg)](https://phpackages.com/packages/michabbb-slack)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M151](/packages/sulu-sulu)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
