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 1mo 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 1mo 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

21

—

LowBetter than 19% of packages

Maintenance59

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity11

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://www.gravatar.com/avatar/96b9e36768b63d0ff69a6c0e546eb81dd3384303a711cd4135538c7a6524238d?d=identicon)[hassankhan-wise](/maintainers/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

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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