PHPackages                             threadmeup/slack-sdk - 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. [API Development](/categories/api)
4. /
5. threadmeup/slack-sdk

AbandonedLibrary[API Development](/categories/api)

threadmeup/slack-sdk
====================

Slack SDK for PHP

1.1.3(11y ago)3489.1k21[2 issues](https://github.com/threadmeup/slack-sdk/issues)[4 PRs](https://github.com/threadmeup/slack-sdk/pulls)1MITPHP

Since Feb 28Pushed 4y ago8 watchersCompare

[ Source](https://github.com/threadmeup/slack-sdk)[ Packagist](https://packagist.org/packages/threadmeup/slack-sdk)[ Docs](https://github.com/threadmeup/slack-sdk)[ RSS](/packages/threadmeup-slack-sdk/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (6)Used By (1)

slack-sdk
=========

[](#slack-sdk)

[![Latest Stable Version](https://camo.githubusercontent.com/9cca8e5e1c6e5145ff0a6cd4e60d087676468140065ebb57365bf052138f2053/68747470733a2f2f706f7365722e707567782e6f72672f7468726561646d6575702f736c61636b2d73646b2f762f737461626c652e737667)](https://packagist.org/packages/threadmeup/slack-sdk) [![Total Downloads](https://camo.githubusercontent.com/45cd4903010bc5208a2ec89a909da1eb31bb43a2378f9270da37e82aee58cf1f/68747470733a2f2f706f7365722e707567782e6f72672f7468726561646d6575702f736c61636b2d73646b2f646f776e6c6f6164732e737667)](https://packagist.org/packages/threadmeup/slack-sdk) [![Latest Unstable Version](https://camo.githubusercontent.com/106bb5efdd5c36acf86049c36965cf3985c921d29a59ea463e982e0a6eb7e0b2/68747470733a2f2f706f7365722e707567782e6f72672f7468726561646d6575702f736c61636b2d73646b2f762f756e737461626c652e737667)](https://packagist.org/packages/threadmeup/slack-sdk) [![License](https://camo.githubusercontent.com/a85d54cf48486e28873dc716747dda49864b749844d3e662a7447fce9d942389/68747470733a2f2f706f7365722e707567782e6f72672f7468726561646d6575702f736c61636b2d73646b2f6c6963656e73652e737667)](https://packagist.org/packages/threadmeup/slack-sdk)

Simple SDK for interacting with Slack.com via the API and webhooks.

Install
-------

[](#install)

You can install slack-sdk by using `composer require threadmeup/slack-sdk dev-master`.

Configure
---------

[](#configure)

```
include 'vendor/autoload.php';

use ThreadMeUp\Slack\Client;

$config = [
    'token' => 'USER-API-TOKEN',
    'team' => 'YOUR-TEAM',
    'username' => 'BOT-NAME',
    'icon' => 'ICON', // Auto detects if it's an icon_url or icon_emoji
    'parse' => '', // __construct function in Client.php calls for the parse parameter
];

$slack = new Client($config);
```

Examples
--------

[](#examples)

What we're doing here is sending the message `Hello World!` to the `#general` channel

```
$chat = $slack->chat('#general');
$chat->send('Hello World!');
```

We can also list all users in the team

```
$users = $slack->users();
foreach ($users as $user)
{
    echo ($user->isAdmin() ? 'Admin' : 'User').': '.$user->name().' '.PHP_EOL;
}
```

Or even listen to outgoing webhooks from Slack themselves.

```
$incoming = $slack->listen();
if ($incoming)
{
    switch($incoming->text())
    {
        case "What time is it?":
            $incoming->respond("It is currently ".date('g:m A T'));
        break;
        default:
            $incoming->respond("I don't understand what you're asking.");
        break;
    }
}
```

For testing reasons you can pass `Client::listen()` an array of the payload to simulate which will then ignore any `$_POST` values and use the `$payload` you supplied instead.

```
$payload = [
    'token' => 'YNgeXsCXyWgAMfCvjc7NUUpz',
    'team_id' => 'T0001',
    'channel_id' => 'C2147483705',
    'channel_name' => 'test',
    'timestamp' => '1355517523.000005',
    'user_id' => 'U2147483697',
    'user_name' => 'Steve',
    'text' => 'googlebot: What is the air-speed velocity of an unladen swallow?'
];
$incoming = $slack->listen($payload);
```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~38 days

Total

5

Last Release

4355d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/82156746?v=4)[killswitch](/maintainers/killswitch)[@killswitch](https://github.com/killswitch)

---

Top Contributors

[![joshmanders](https://avatars.githubusercontent.com/u/352113?v=4)](https://github.com/joshmanders "joshmanders (18 commits)")[![corykeane](https://avatars.githubusercontent.com/u/6148819?v=4)](https://github.com/corykeane "corykeane (8 commits)")[![khobbits](https://avatars.githubusercontent.com/u/428811?v=4)](https://github.com/khobbits "khobbits (5 commits)")[![martijnengler](https://avatars.githubusercontent.com/u/929994?v=4)](https://github.com/martijnengler "martijnengler (1 commits)")[![0x616469](https://avatars.githubusercontent.com/u/522627?v=4)](https://github.com/0x616469 "0x616469 (1 commits)")[![sagebind](https://avatars.githubusercontent.com/u/2192863?v=4)](https://github.com/sagebind "sagebind (1 commits)")[![joshbeckman](https://avatars.githubusercontent.com/u/2358584?v=4)](https://github.com/joshbeckman "joshbeckman (1 commits)")[![joyrida08](https://avatars.githubusercontent.com/u/4261753?v=4)](https://github.com/joyrida08 "joyrida08 (1 commits)")

---

Tags

apisdkslackslack-apislack-sdkthreadmeup

### Embed Badge

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

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

###  Alternatives

[jolicode/slack-php-api

An up to date PHP client for Slack's API

2564.7M13](/packages/jolicode-slack-php-api)[lisennk/laravel-slack-events-api

Slack Events API for Laravel 5, 6, 7 and 8

3911.7k](/packages/lisennk-laravel-slack-events-api)[corbanb/freebird-php

Twitter API v1.1 Application only authoization library

158.6k](/packages/corbanb-freebird-php)[ipalaus/buffer-php-sdk

Unofficial Buffer SDK for PHP.

148.9k](/packages/ipalaus-buffer-php-sdk)

PHPackages © 2026

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