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

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

fabmedia/laravel-slack-notifier
===============================

Slack Notifier is used to send messages in specific slack channel using slack webhook url.

05PHP

Since Mar 22Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/FabMediaIO/laravel-slack-notifier)[ Packagist](https://packagist.org/packages/fabmedia/laravel-slack-notifier)[ RSS](/packages/fabmedia-laravel-slack-notifier/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Slack Notifier
======================

[](#laravel-slack-notifier)

Laravel Slack Notifier is used to send messages in specific slack channel using slack webhook url.

Add your slack webhook url in .env file. Your webhook URL will look something like this:

```
SLACK_HOOK_URL="https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX"
```

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

[](#installation)

You can install the package via composer:

```
composer require "fabmedia/laravel-slack-notifier @dev"
```

Usage
-----

[](#usage)

You can send message by using the `sendNotification` method.

```
use Fabmedia\SlackNotifier\SlackNotifier;

$slackNotifier = new SlackNotifier();
$slackNotifier->sendNotification('This is a test message');
```

Alternatively, you could also send block message by using the `sendNotificationBlock` method.

```
use Fabmedia\SlackNotifier\SlackNotifier;

$block = [
	[
		'type' => 'section',
		'text' => [
			'type' => 'mrkdwn',
			'text' => '*A new visitor has submitted an inquiry*',
		],
	],
	[
		'type' => 'divider',
	],
	[
		'type' => 'section',
		'text' => [
			'type' => 'mrkdwn',
			'text' => "*Name:* {$name}",
		],
	],
	[
		'type' => 'section',
		'text' => [
			'type' => 'mrkdwn',
			'text' => "*Email:* {$email}",
		],
	],
	[
		'type' => 'section',
		'text' => [
			'type' => 'mrkdwn',
			'text' => "*Message:*\n{$message}",
		],
	],
];

$slackNotifier = new SlackNotifier();
$slackNotifier->sendNotificationBlock($block);
```

License
-------

[](#license)

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

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance50

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 88.9% 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://avatars.githubusercontent.com/u/77392509?v=4)[Hassan Khan](/maintainers/hassankhan-wise)[@hassankhan-wise](https://github.com/hassankhan-wise)

---

Top Contributors

[![hassankhan-wise](https://avatars.githubusercontent.com/u/77392509?v=4)](https://github.com/hassankhan-wise "hassankhan-wise (8 commits)")[![Faisalawanisee](https://avatars.githubusercontent.com/u/2613787?v=4)](https://github.com/Faisalawanisee "Faisalawanisee (1 commits)")

### Embed Badge

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

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

###  Alternatives

[bigbharatjain/laravel-clickatell

This package makes it easy to send sms using clickatell.com with Laravel 5.

1435.2k](/packages/bigbharatjain-laravel-clickatell)[motomedialab/smtp2go

Send emails via API using the first-class email courier SMTP2Go

1323.6k](/packages/motomedialab-smtp2go)

PHPackages © 2026

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