PHPackages                             jlg/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jlg/slack-client

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jlg/slack-client
================

A Laravel package containing a simple slack client

10PHP

Since Mar 14Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

SlackClient
===========

[](#slackclient)

Just a simple Slack client in php

Quick reference
===============

[](#quick-reference)

Here is an example of the slack attachment array being used for a message that sends a button to respond to an exception.

```
    $data = [
        [
            "pretext" => $text,
            "fallback" => "{$text}\n{$exception->getTraceAsString()}",
            "callback_id" => "gen_task",
            "color" => "#3AA3E3",
            "attachment_type" => "default",
            "actions" => [
                [
                    "name" => "task",
                    "text" => "Create Task",
                    "style" => "primary",
                    "type" => "button",
                    "value" => "create_task",
                    "confirm" => [
                        [
                            "title" => "Are you sure you want to generate a task?",
                            "ok_text" => "Yes",
                            "dismiss_text" => "No"
                        ]
                    ]
                ],
                [
                    "name" => "stacktrace",
                    "text" => "Stacktrace",
                    "style" => "danger",
                    "type" => "button",
                    "value" => "see_stack",
                ]
            ]
        ]
    ];

```

Please see slacks documentation for more details on what is valid.

@todo - update documentation and update tests

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6fc557675a7778999bff5aefe0274fb3d985c72b36db7a456a36348c80756716?d=identicon)[jlg916](/maintainers/jlg916)

---

Top Contributors

[![joshuaGlass808](https://avatars.githubusercontent.com/u/10493764?v=4)](https://github.com/joshuaGlass808 "joshuaGlass808 (7 commits)")

---

Tags

hacktoberfesthacktoberfest2021

### Embed Badge

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

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

PHPackages © 2026

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