PHPackages                             infinityxtech/slack-api-php - 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. infinityxtech/slack-api-php

ActiveLibrary[API Development](/categories/api)

infinityxtech/slack-api-php
===========================

A PHP client for the Slack API.

v1.0.1(1y ago)0181MITPHPPHP ^8.0

Since Dec 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/community-sdks/slack-php)[ Packagist](https://packagist.org/packages/infinityxtech/slack-api-php)[ RSS](/packages/infinityxtech-slack-api-php/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (1)

Slack API Documentation ([Examples](docs/Examples.md))
======================================================

[](#slack-api-documentation-examples)

This repository contains PHP classes for interacting with the Slack API. Below are links to documentation for each class:

- [Slack Apps API Methods](docs/Apps.md)
- [Slack Auth API Methods](docs/Auth.md)
- [Slack Channel API Methods](docs/Channel.md)
- [Slack Chat API Methods](docs/Chat.md)
- [Slack Conversations API Methods](docs/Conversations.md)
- [Slack Files API Methods](docs/Files.md)
- [Slack Reactions API Methods](docs/Reactions.md)
- [Slack Reminders API Methods](docs/Reminders.md)
- [Slack Teams API Methods](docs/Teams.md)
- [Slack User API Methods](docs/User.md)
- [Slack User Groups API Methods](docs/UserGroups.md)
- [Slack Views API Methods](docs/Views.md)

SlackAuthProvider and SlackApiProvider Usage
--------------------------------------------

[](#slackauthprovider-and-slackapiprovider-usage)

To interact with the Slack API, you'll need to use the `SlackAuthProvider` and `SlackApiProvider` classes. Here's how you can set up and use them:

```
use SlackApi\Auth\SlackAuthProvider;
use SlackApi\Core\SlackApiProvider;

$clientId = getenv('SLACK_CLIENT_ID');
$clientSecret = getenv('SLACK_CLIENT_SECRET');
$redirectUrl = getenv('SLACK_REDIRECT_URL');

$provider = new SlackAuthProvider($clientId, $clientSecret, $redirectUrl);

// Call this when you wish to redirect user to authorize with slack
$provider->redirect();

// Call this on $redirectUrl when slack authorization redirect to $redirectUrl
$token = $provider->getAccessToken($_GET['code']);

// Create a new SlackApiProvider instance with access token
$slackApi = new SlackApiProvider($token);

// Below this point, you can use various API methods:
$slackApi->channel()->someMethod();
$slackApi->user()->someMethod();
$slackApi->chat()->someMethod();
$slackApi->auth()->someMethod();
$slackApi->apps()->someMethod();
$slackApi->conversations()->someMethod();
$slackApi->files()->someMethod();
$slackApi->reactions()->someMethod();
$slackApi->reminders()->someMethod();
$slackApi->teams()->someMethod();
$slackApi->userGroups()->someMethod();
$slackApi->views()->someMethod();
```

Please replace the placeholders (`SLACK_CLIENT_ID`, `SLACK_CLIENT_SECRET`, `SLACK_REDIRECT_URL`) with your actual Slack app details. The `redirectUrl` must also be set within your Slack app configuration. After successful authentication and being redirected to the callback URL, you can obtain the access token.

You can then use the `$slackApi` instance to interact with various API methods from different classes within the repository.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~219 days

Total

2

Last Release

709d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/211412089?v=4)[ZPM Labs](/maintainers/zpmlabs)[@ZPMLabs](https://github.com/ZPMLabs)

---

Top Contributors

[![sasaorasanin](https://avatars.githubusercontent.com/u/100382372?v=4)](https://github.com/sasaorasanin "sasaorasanin (2 commits)")

### Embed Badge

![Health badge](/badges/infinityxtech-slack-api-php/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M983](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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