PHPackages                             tiagomichaelsousa/slack-client - 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. tiagomichaelsousa/slack-client

ActiveLibrary[API Development](/categories/api)

tiagomichaelsousa/slack-client
==============================

A slack sdk for php

v0.3.0(2y ago)5132[3 PRs](https://github.com/tiagomichaelsousa/slack-client/pulls)MITPHPPHP ^8.1.0

Since Jun 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tiagomichaelsousa/slack-client)[ Packagist](https://packagist.org/packages/tiagomichaelsousa/slack-client)[ RSS](/packages/tiagomichaelsousa-slack-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (19)Versions (8)Used By (0)

 [![Slack Client](https://raw.githubusercontent.com/tiagomichaelsousa/slack-client/main/art/client.png)](https://raw.githubusercontent.com/tiagomichaelsousa/slack-client/main/art/client.png)

 [![GitHub Workflow Status (main)](https://github.com/tiagomichaelsousa/slack-laravel/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/tiagomichaelsousa/slack-client/actions) [![Total Downloads](https://camo.githubusercontent.com/b9f3e0a4d7ceb0a04a3d63c1bc5da4f8007aba911147edd29fab871bc9d86b78/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746961676f6d69636861656c736f7573612f736c61636b2d636c69656e74)](https://packagist.org/packages/tiagomichaelsousa/slack-client) [![Latest Version](https://camo.githubusercontent.com/8a9e00f78bb038dfa3f5d12d0abbffd42d0bb142f5f2ca72ab2ed1a6fa32a1b7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746961676f6d69636861656c736f7573612f736c61636b2d636c69656e74)](https://packagist.org/packages/tiagomichaelsousa/slack-client) [![License](https://camo.githubusercontent.com/1fad15aca072fba032e240272c0528c47e3af3176e82aa339f89cd5ec17599f8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f746961676f6d69636861656c736f7573612f736c61636b2d636c69656e74)](https://packagist.org/packages/tiagomichaelsousa/slack-client)

---

**Slack Client** is a non-official PHP API client that allows you to interact with the [Slack API](https://api.slack.com/methods) ⚡️

> **This package is still under development.** There may have methods that are still not implemented.

---

Get Started
-----------

[](#get-started)

The official documentation for the Slack Client will be available soon. 👀

Until there you can still explore the SDK development experience with the `users()`, `conversations()` and `reminders()` methods 🚀

> **Requires [PHP 8.1+](https://php.net/releases/)**

First, install Slack Client via the [Composer](https://getcomposer.org/) package manager:

```
composer require tiagomichaelsousa/slack-client
```

After that, you can interact with Slacks's API:

```
$client = Slack::client($token);

$conversations = $client->conversations()->create('foo');

echo $conversations->channel->name;
```

If necessary, it is possible to configure and create a separate client.

```
$client = Slack::factory()
    ->withApiKey($token)
    ->withBaseUri('slack.com/api/v2') // default: slack.com/api
    ->withHttpClient($client = new \GuzzleHttp\Client([])) // default: HTTP client found using PSR-18 HTTP Client
    ->withHttpHeader('X-My-Header', 'foo')
    ->withQueryParam('foo', 'bar')
    ->withStreamHandler(fn (RequestInterface $request): ResponseInterface => $client->send($request, [
        'stream' => true // Allows to provide a custom stream handler for the http client.
    ]))
    ->make();
```

Testing
-------

[](#testing)

This client provides a way to easily fake the API responses through `Slack\Client` class.

Before using this feature please ensure that you swap the `Slack\Client` with `Slack\Testing\ClientFake` in your test case.

Besides this useful test class, you can also easily generate response objects and provide relevant information based on your use case. All responses have a `fake()` method to easily overwrite the objects.

```
use Slack\Testing\ClientFake;
use Slack\Responses\Conversation\CreateConversationResponse;

$client = new ClientFake([
    CreateConversationResponse::fake([
        'channel' => [
            'name' => 'foo',
        ],
    ]);
]);

$conversations = $client->conversations()->create('foo');

expect($conversations->channel)->name->toBe('foo');
```

The official documentation for the Slack Client will be available soon. 👀

Slack Client is an open-sourced software licensed under the **[MIT license](https://opensource.org/licenses/MIT)**.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.3% 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 ~1 days

Total

4

Last Release

1042d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/26550bab7dc2128c616cafe07dfaf9e859efe4bf29364a56ef636bc6574e3317?d=identicon)[tiagomichaelsousa](/maintainers/tiagomichaelsousa)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![tiagomichaelsousa](https://avatars.githubusercontent.com/u/28356381?v=4)](https://github.com/tiagomichaelsousa "tiagomichaelsousa (5 commits)")

---

Tags

phpsdkpackageslack

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k22.6M232](/packages/openai-php-client)[mozex/anthropic-php

Anthropic PHP is a supercharged community-maintained PHP API client that allows you to interact with Anthropic API.

46365.1k13](/packages/mozex-anthropic-php)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

963.1M35](/packages/getbrevo-brevo-php)[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[jolicode/slack-php-api

An up to date PHP client for Slack's API

2534.4M12](/packages/jolicode-slack-php-api)

PHPackages © 2026

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