PHPackages                             jeremykenedy/slack-laravel - 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. jeremykenedy/slack-laravel

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

jeremykenedy/slack-laravel
==========================

Laravel integration for the jeremykenedy/slack package, including facades and service providers.

v2.6.0(5y ago)54738.8k↓15.9%17[1 PRs](https://github.com/jeremykenedy/slack-laravel/pulls)MITPHPPHP &gt;=5.6.4

Since Jul 21Pushed 5y ago3 watchersCompare

[ Source](https://github.com/jeremykenedy/slack-laravel)[ Packagist](https://packagist.org/packages/jeremykenedy/slack-laravel)[ GitHub Sponsors](https://github.com/jeremykenedy)[ Patreon](https://www.patreon.com/jeremykenedy)[ RSS](/packages/jeremykenedy-slack-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (10)Used By (0)

[![Slack for Laravel](https://camo.githubusercontent.com/56a4475b5fce6ab34ecf1b784063643f8a1cc75590fe8e6f7f00751a82fdd0af/68747470733a2f2f6769746875622d70726f6a6563742d696d616765732e73332d75732d776573742d322e616d617a6f6e6177732e636f6d2f6c6f676f732f6c61726176656c2d736c61636b2d6c6f676f2e706e67)](https://camo.githubusercontent.com/56a4475b5fce6ab34ecf1b784063643f8a1cc75590fe8e6f7f00751a82fdd0af/68747470733a2f2f6769746875622d70726f6a6563742d696d616765732e73332d75732d776573742d322e616d617a6f6e6177732e636f6d2f6c6f676f732f6c61726176656c2d736c61636b2d6c6f676f2e706e67)

Slack for Laravel
=================

[](#slack-for-laravel)

Laravel integration for the Slack, including facades and service providers. This package allows you to use [Slack for PHP](https://github.com/maknz/slack) easily and elegantly in your Laravel app.

[![Total Downloads](https://camo.githubusercontent.com/76a60b902334f9a66a5904e2ecb9203bbe3f0a41680969b23bb13e20e86b2edb/68747470733a2f2f706f7365722e707567782e6f72672f6a6572656d796b656e6564792f736c61636b2d6c61726176656c2f642f746f74616c2e737667)](https://packagist.org/packages/jeremykenedy/slack-laravel)[![Latest Stable Version](https://camo.githubusercontent.com/23dd72b23ed0489a4f2b1f0f8620cba4aba3a9b0a32af6475b1c589cb9841ad6/68747470733a2f2f706f7365722e707567782e6f72672f6a6572656d796b656e6564792f736c61636b2d6c61726176656c2f762f737461626c652e737667)](https://packagist.org/packages/jeremykenedy/slack-laravel)[![StyleCI](https://camo.githubusercontent.com/7d6526f96ccdef5aa9ca5b7cafbc3ca6e8eeefa1e35a714c8c34239ae1249bd1/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f39373839343337332f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/97894373)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

- [Slack for Laravel](#slack-for-laravel)
    - [Requirements](#requirements)
    - [Installation](#installation)
        - [1. From your projects root folder in terminal run:](#1-from-your-projects-root-folder-in-terminal-run)
        - [2a. Register App (Laravel 5.5 +)](#2a-register-app-laravel-55)
        - [2b. Register App (Laravel 5.4 and below)](#2b-register-app-laravel-54-and-below)
        - [3. Register App Alias (Laravel 5.4 and below)](#3-register-app-alias-laravel-54-and-below)
        - [4. Publish Assets (All)](#4-publish-assets-all)
        - [5. Create Webhook (All)](#5-create-webhook-all)
        - [6. Configure `.env` (All)](#6-configure-env-all)
    - [Configuration](#configuration)
    - [Usage](#usage)
    - [1. Include Class](#1-include-class)
    - [2. Trigging Slack Messages](#2-trigging-slack-messages)- [Send to Default Channel](#send-to-default-channel)- [Send to Different Channel](#send-to-different-channel)- [Send to Private Message](#send-to-private-message)
        - [Faking in tests](#faking-in-tests)
    - [Credits](#credits)
    - [License](#license)

### Requirements

[](#requirements)

- [Laravel 5.3 or newer](https://laravel.com/docs/installation)

### Installation

[](#installation)

##### 1. From your projects root folder in terminal run:

[](#1-from-your-projects-root-folder-in-terminal-run)

```
    composer require jeremykenedy/slack-laravel
```

##### 2a. Register App (Laravel 5.5 +)

[](#2a-register-app-laravel-55-)

Uses package auto discovery feature, no need to edit the `config/app.php` file.

- Skip to [4. Publish Assets](#4.-publish-assets)

##### 2b. Register App (Laravel 5.4 and below)

[](#2b-register-app-laravel-54-and-below)

Register the package with laravel in `config/app.php` under `providers` with the following:

```
    'providers' => [
        jeremykenedy\Slack\Laravel\ServiceProvider::class,
    ];
```

##### 3. Register App Alias (Laravel 5.4 and below)

[](#3-register-app-alias-laravel-54-and-below)

Register the package with laravel in `config/app.php` under `aliases` with the following:

```
    'aliases' => [
        'Slack' => jeremykenedy\Slack\Laravel\Facade::class,
    ];
```

##### 4. Publish Assets (All)

[](#4-publish-assets-all)

Publish the config file from your projects root folder in terminal by running:

```
    php artisan vendor:publish --tag=slacklaravel
```

##### 5. Create Webhook (All)

[](#5-create-webhook-all)

[Create an incoming webhook](https://my.slack.com/services/new/incoming-webhook) for each Slack team you'd like to send messages to. You'll need the webhook URL(s) in order to configure this package.

##### 6. Configure `.env` (All)

[](#6-configure-env-all)

Configure Slack for Laravel in your `.env` file by adding and editing the following:

```
DEFAULT_SLACK_WEBHOOK_ENDPOINT=https://hooks.slack.com/services/XXXXXXXX/XXXXXXXX/XXXXXXXXXXXXXX
DEFAULT_SLACK_CHANNEL='#general'
DEFAULT_SLACK_USERNAME=Robot
DEFAULT_SLACK_ICON=':ghost:'
DEFAULT_SLACK_LINKNAMES_CONVERTED=FALSE
DEFAULT_SLACK_UNFURL_LINKS_STATUS=FALSE
DEFAULT_SLACK_UNFURL_MEDIA_STATUS=TRUE
DEFAULT_SLACK_ALLOW_MARKDOWN=TRUE
DEFAULT_SLACK_MARKDOWN_FIELDS="'text','title'"
```

### Configuration

[](#configuration)

The config file comes with defaults and placeholders. Configure at least one team and any defaults you'd like to change. Default configurations are published into `config/slack.php` and the values can be set in the `.env` file like so:

```
DEFAULT_SLACK_WEBHOOK_ENDPOINT=https://hooks.slack.com/services/XXXXXXXX/XXXXXXXX/XXXXXXXXXXXXXX
DEFAULT_SLACK_CHANNEL='#general'
DEFAULT_SLACK_USERNAME=Robot
DEFAULT_SLACK_ICON=':ghost:'
DEFAULT_SLACK_LINKNAMES_CONVERTED=FALSE
DEFAULT_SLACK_UNFURL_LINKS_STATUS=FALSE
DEFAULT_SLACK_UNFURL_MEDIA_STATUS=TRUE
DEFAULT_SLACK_ALLOW_MARKDOWN=TRUE
DEFAULT_SLACK_MARKDOWN_FIELDS="'text','title'"

```

### Usage

[](#usage)

### 1. Include Class

[](#1-include-class)

- Use the facade anywhere:

```
\Slack::send('Hey');
```

### 2. Trigging Slack Messages

[](#2-trigging-slack-messages)

###### Send to Default Channel

[](#send-to-default-channel)

- Send a message to the default channel

```
    Slack::send('Hi Slack, from the API :)');
```

###### Send to Different Channel

[](#send-to-different-channel)

- Send a message to a different channel

```
    Slack::to('#testing')->send('Hi Testing!');
```

###### Send to Private Message

[](#send-to-private-message)

- Send a message to a private channel

```
    Slack::to('@jeremykenedy')->send('Hi Jeremy!');
```

#### Faking in tests

[](#faking-in-tests)

Use the `fake` method on the Facade

```
    Slack::fake()
```

This provides the following

```
    Slack::assertMessageSent(function($messages) {
        // search in all messages
    });

    Slack::assertMessageSentTo($channel, function($messages) {
        // search in all messages posted to $channel
    });
```

### Credits

[](#credits)

- Most development credit must go to [maknz](https://github.com/maknz/slack-laravel).
- This package was forked and improved. The original package states that it was no longer maintained.
- This package was forked and modified to be compliant with [MIT](https://opensource.org/licenses/MIT) licencing standards for production use.

### License

[](#license)

Slack for Laravel is licensed under the MIT license for both personal and commercial products. Enjoy!

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity50

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 80.6% 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 ~237 days

Recently: every ~296 days

Total

6

Last Release

2038d ago

PHP version history (2 changes)v2.1.0PHP &gt;=5.4.0

v2.3.0PHP &gt;=5.6.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/05cef7d9ee65723b129042943511207fb34db74a56afbf67b5900987f758c161?d=identicon)[jeremykenedy](/maintainers/jeremykenedy)

---

Top Contributors

[![jeremykenedy](https://avatars.githubusercontent.com/u/6244570?v=4)](https://github.com/jeremykenedy "jeremykenedy (29 commits)")[![superbiche](https://avatars.githubusercontent.com/u/2478146?v=4)](https://github.com/superbiche "superbiche (3 commits)")[![maierwalter](https://avatars.githubusercontent.com/u/6636673?v=4)](https://github.com/maierwalter "maierwalter (2 commits)")[![hwdegroot](https://avatars.githubusercontent.com/u/7371571?v=4)](https://github.com/hwdegroot "hwdegroot (1 commits)")[![jasonmccreary](https://avatars.githubusercontent.com/u/161071?v=4)](https://github.com/jasonmccreary "jasonmccreary (1 commits)")

---

Tags

laravelslack

### Embed Badge

![Health badge](/badges/jeremykenedy-slack-laravel/health.svg)

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

###  Alternatives

[maknz/slack-laravel

Laravel 4 and 5 integration for the maknz/slack package, including facades and service providers.

154969.3k1](/packages/maknz-slack-laravel)[razorpay/slack-laravel

Laravel 4 and 5 integration for the razorpay/slack package, including facades and service providers.

18375.3k1](/packages/razorpay-slack-laravel)[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)

PHPackages © 2026

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