PHPackages                             marshmallow/slack-extended-envoy - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. marshmallow/slack-extended-envoy

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

marshmallow/slack-extended-envoy
================================

Rich Text notification for Laravel Envoy

v0.0.10(1y ago)03.9k↓36.7%MITPHPPHP ^7.2|^8.0

Since May 8Pushed 3w ago1 watchersCompare

[ Source](https://github.com/marshmallow-packages/slack-extended-envoy)[ Packagist](https://packagist.org/packages/marshmallow/slack-extended-envoy)[ RSS](/packages/marshmallow-slack-extended-envoy/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (2)Versions (12)Used By (0)

[![alt text](https://camo.githubusercontent.com/f5450f299f5713ce2f04dd5a1ba7ce9960ed4568b3574e4c4ee3cddc75477253/68747470733a2f2f6d617273686d616c6c6f772e6465762f63646e2f6d656469612f6c6f676f2d7265642d3233377834362e706e67 "marshmallow.")](https://camo.githubusercontent.com/f5450f299f5713ce2f04dd5a1ba7ce9960ed4568b3574e4c4ee3cddc75477253/68747470733a2f2f6d617273686d616c6c6f772e6465762f63646e2f6d656469612f6c6f676f2d7265642d3233377834362e706e67)

Slack Extended for Laravel Envoy
================================

[](#slack-extended-for-laravel-envoy)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5b4605e71f5de3324a470d102eced5a35bf00911178393b68c46fc5d67a9e65a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617273686d616c6c6f772f736c61636b2d657874656e6465642d656e766f792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marshmallow/slack-extended-envoy)[![Total Downloads](https://camo.githubusercontent.com/bdaf79882df0cdeec169e3afa1a651840439efab24b1513d850f7d8d1793b639/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d617273686d616c6c6f772f736c61636b2d657874656e6465642d656e766f792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marshmallow/slack-extended-envoy)

Rich Text notification for Laravel Envoy.

This package sends a richly formatted Slack message from your [Laravel Envoy](https://laravel.com/docs/envoy) deployment scripts. Instead of a plain line of text, it posts a Slack [Block Kit](https://api.slack.com/block-kit) attachment with a colored success/failure header, the release number, deployment details (host, branch, PHP version, the user who triggered the deploy) and a button linking back to GitHub.

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require marshmallow/slack-extended-envoy
```

Usage
-----

[](#usage)

The entry point is the `Marshmallow\SlackExtended\SlackExtended` class. Build a message with `make()`, optionally set the failing task with `task()`, and call `send()` to post it to your Slack Incoming Webhook.

```
use Marshmallow\SlackExtended\SlackExtended;

SlackExtended::make(
    hook: 'https://hooks.slack.com/services/XXX/YYY/ZZZ',
    channel: '#deployments',
    options: [
        'host'        => 'production',
        'release'     => '20260611120000',
        'user'        => 'stefvanesch',
        'branch'      => 'main',
        'php_version' => '8.5',
        'github_url'  => 'https://github.com/marshmallow-packages/slack-extended-envoy',
    ],
    success: true,
)->send();
```

### Constructor / `make()` arguments

[](#constructor--make-arguments)

ArgumentTypeDefaultDescription`hook``string`—The Slack Incoming Webhook URL to post the message to.`channel``mixed``''`The Slack channel the message is posted to.`options``array``[]`The deployment details rendered in the message (see below). When empty, a set of placeholder values is used.`success``bool``false`Whether the deployment succeeded. Controls the header text, color (green/red) and image.The `options` array is rendered into the message body and recognises these keys:

KeyDescription`host`The host the deployment ran on.`release`The release number, shown as `#{release}`.`user`The user that triggered the deployment. Known handles (`LTKort`, `stefvanesch`, `lucienversendaal`) are mapped to a Slack mention; others render as "Unknown user".`branch`The branch that was deployed.`php_version`The PHP version used for the deployment.`github_url`The URL the "View" button links to.### Reporting the failing task

[](#reporting-the-failing-task)

When a deployment fails, use `task()` to include the name of the task that failed in the message. `task()` is chainable and returns the instance:

```
use Marshmallow\SlackExtended\SlackExtended;

SlackExtended::make($hook, $channel, $options, success: false)
    ->task('deploy')
    ->send();
```

### Using it from Envoy

[](#using-it-from-envoy)

Call the package from your `Envoy.blade.php` deployment hooks, for example in `@error` and `@finished`:

```
@finished
    @php
        \Marshmallow\SlackExtended\SlackExtended::make(
            $slackHook,
            '#deployments',
            $options,
            success: true,
        )->send();
    @endphp
@endfinished
```

Credits
-------

[](#credits)

- [LTKort](https://github.com/marshmallow-packages)
- [All Contributors](https://github.com/marshmallow-packages/slack-extended-envoy/contributors)

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please report security vulnerabilities by email rather than via the public issue tracker.

License
-------

[](#license)

The MIT License. Please see the [License File](LICENSE.md) for more information.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance72

Regular maintenance activity

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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 ~77 days

Recently: every ~171 days

Total

10

Last Release

458d ago

### Community

Maintainers

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

---

Top Contributors

[![LTKort](https://avatars.githubusercontent.com/u/2412670?v=4)](https://github.com/LTKort "LTKort (10 commits)")[![stefvanesch](https://avatars.githubusercontent.com/u/46725619?v=4)](https://github.com/stefvanesch "stefvanesch (4 commits)")

### Embed Badge

![Health badge](/badges/marshmallow-slack-extended-envoy/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NotifyX、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

687114.3k8](/packages/guanguans-notify)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

254168.5k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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