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

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

jivesh/laravel-slack
====================

A minimalist laravel integration for Slack

2.1.2(8y ago)2536.7k7[1 issues](https://github.com/gahlawat/laravel-slack/issues)2MITPHP

Since Aug 1Pushed 7y ago2 watchersCompare

[ Source](https://github.com/gahlawat/laravel-slack)[ Packagist](https://packagist.org/packages/jivesh/laravel-slack)[ Docs](https://gahlawat.github.io/laravel-slack)[ RSS](/packages/jivesh-laravel-slack/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (4)Versions (11)Used By (2)

laravel-slack
=============

[](#laravel-slack)

[![Author](https://camo.githubusercontent.com/d9b90d9108e5c10c71133a76eb10c51f232d92d01f61151cc72f56a2b1b354bc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d406a69766573682d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/JiveshGahlawat)[![Travis](https://camo.githubusercontent.com/9b08ed6f41b269a410dcec8106f2bea43618b34749c5e33eec44dfe2f7f992b0/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6761686c617761742f6c61726176656c2d736c61636b2e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/gahlawat/laravel-slack)[![Quality Score](https://camo.githubusercontent.com/e3f7bd937ac85826cc8400f98685ded9505fd6a6d9873c15e68729f07027ee75/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6761686c617761742f6c61726176656c2d736c61636b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/gahlawat/laravel-slack/?branch=master)[![Code Climate](https://camo.githubusercontent.com/27ad567c1a33e42c5a98d8858922c9ce4c5e53486c1b773f7ea8bfb289e0ca7a/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f6761686c617761742f6c61726176656c2d736c61636b2e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/gahlawat/laravel-slack)[![Total Downloads](https://camo.githubusercontent.com/17437f41a5203ca2ee1483dde55d3bf314f19d84a34a20bb45115531c2fbde4a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a69766573682f6c61726176656c2d736c61636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jivesh/laravel-slack)[![Packagist Version](https://camo.githubusercontent.com/2727cb3c38eb905e6d51bb6edd09efb4d3351748c66aa7c4ac0b7369dcafd9c9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a69766573682f6c61726176656c2d736c61636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jivesh/laravel-slack)[![Software License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jivesh/laravel-slack)[![SensioLabsInsight](https://camo.githubusercontent.com/32ef8d9ffab8b96f709613bf8cc8ffaab00f8e56266f6c0b443c66fbbdfc32a9/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f39393638666633312d306432612d346161322d396133362d3564386136333734323331312f6269672e706e67)](https://insight.sensiolabs.com/projects/9968ff31-0d2a-4aa2-9a36-5d8a63742311)

A very tiny and lightweight integration with the Slack API for posting notifications or any kind of messages to your team's Slack account.

---

- [Requirements](#requirements)
- [Installation](#installation)
- [Registering the Package](#registering-the-package)
- [Configuration](#configuration)
- [Usage](#usage)

Requirements
------------

[](#requirements)

- Laravel Framework 5+

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

[](#installation)

Using [Composer](https://getcomposer.org/) package manager, install this package by running following command in your project root:

```
$ composer require jivesh/laravel-slack
```

Registering the Package
-----------------------

[](#registering-the-package)

- This package supports auto discovery feature introduced in Laravel v5.5, hence it is auto registered. You may skip to 'Configuration' section below.
- If your app is on Laravel v5.4 or below, follow below steps to register:
- In your `config/app.php` file, append the following code into your `providers` array for integrating the Service Provider for package.

```
/**
 * Package Service Provider
 */

'providers' => [
    // ...

    Gahlawat\Slack\SlackServiceProvider::class,
],
```

- Again in your `config/app.php` file, copy the following code into your `aliases` array for a nice Laravel syntax using Facades.

```
/**
 * Package Alias
 */

'aliases' => [
    // ...

    'Slack' => Gahlawat\Slack\Facade\Slack::class,
],
```

Configuration
-------------

[](#configuration)

- [Create an incoming webhook](https://www.slack.com/services/new/incoming-webhook) on your Slack account for the package to use and copy the generated Webhook URL.
- Run the following command in project root directory to generate config file for package.

```
$ php artisan vendor:publish
```

- Now edit `config/slack.php` and paste value for `incoming-webhook` generated in the first step above.
- You may optionally set a default username and emoji icon displayed in your Slack app from here.

Usage
-----

[](#usage)

- Send any message in real time to your Slack account using this anywhere in your php code:

```
\Slack::send("your-message");
```

- The backslash indicates global namespace scope for this function, you may import Slack namespace on top of your file by `using` it:

```
use Slack;
```

- Then, you can call this Facade without a `\` as:

```
Slack::send("your-message");
```

- You can change the default name and/or display icon in your Slack app for any message by using optional second and third parameter.
- To send this message privately to any user, use the fourth parameter as **@username**
- To send this message publicly to any channel, use the fourth parameter as **\#channel**

```
Slack::send("your-message" [,"display-name" [,"display-emoji"] [,"#channel" or "@username"]]);

// here [] indicates optional parameters
```

See this [cheat sheet](http://www.emoji-cheat-sheet.com) of available emoji icons.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 77.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 ~122 days

Recently: every ~210 days

Total

9

Last Release

2960d ago

Major Versions

0.0.1 → 1.0.02015-08-02

1.0.3 → 2.0.02017-08-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/75f3ca805dbefcb1a41653e4a1d3498a0bd18ece75c4bd64c3d09d041c88caea?d=identicon)[gahlawat](/maintainers/gahlawat)

---

Top Contributors

[![gahlawat](https://avatars.githubusercontent.com/u/4440677?v=4)](https://github.com/gahlawat "gahlawat (17 commits)")[![wolf-dog](https://avatars.githubusercontent.com/u/4405247?v=4)](https://github.com/wolf-dog "wolf-dog (3 commits)")[![kaphert](https://avatars.githubusercontent.com/u/5932192?v=4)](https://github.com/kaphert "kaphert (2 commits)")

---

Tags

laravelnotificationsslacklaravelslack

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[maknz/slack

A simple PHP package for sending messages to Slack, with a focus on ease of use and elegant syntax.

1.2k11.7M65](/packages/maknz-slack)[guanguans/notify

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

682104.9k7](/packages/guanguans-notify)[beyondcode/slack-notification-channel

Slack Notification Channel for Laravel using API tokens.

85525.8k](/packages/beyondcode-slack-notification-channel)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[razorpay/slack

A simple PHP package for sending messages to Slack, with a focus on ease of use and elegant syntax.

20414.5k3](/packages/razorpay-slack)

PHPackages © 2026

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