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 3mo agoCompare

[ 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 2d 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

20

—

LowBetter than 13% of packages

Maintenance54

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community8

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

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)

PHPackages © 2026

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