PHPackages                             mountain/laraslack - 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. mountain/laraslack

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

mountain/laraslack
==================

A simple package to automatically send alerts to a slack channel

v0.1.0(4y ago)2213MITPHPPHP &gt;=7.0

Since Oct 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ThomasMountain/laraslack)[ Packagist](https://packagist.org/packages/mountain/laraslack)[ Docs](https://github.com/ThomasMountain/laraslack)[ RSS](/packages/mountain-laraslack/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

LaraSlack
=========

[](#laraslack)

About
-----

[](#about)

A Basic Slack integration for Laravel projects

Usage
-----

[](#usage)

Register a helper function instantiating the LaraSlack class e.g.

```
function laraslack($content) {
	return new \ThomasMountain\LaraSlack\LaraSlack($content);
}

```

Required ENV
------------

[](#required-env)

- SLACK\_WEB\_HOOK\_URL=
    - String
    - The Slack web hook url
- SLACK\_CHANNEL=
    - String
    - The channel or user to send the message to
- SLACK\_USERNAME=
    - String
    - The username to send the message as
- SLACK\_ICON=
    - String
    - The icon to be sent with the message (wrapped in ':' i.e 📈)
- SLACK\_SEND=
    - Boolean
    - Determines wether the message will be sent
    - Set to false in testing environments

Overriding Defaults
-------------------

[](#overriding-defaults)

You can pass an array to the send() method to overwride the defaults specified in the .env file. The array keys are:

- channel
- message
- username
- icon

Any array keys that are not passed through will take the defaults from the config

E.G:

```
laraslack([
    'channel' => 'Dummy Channel',
    'icon'    => ':bananadance:',
    'message  => 'message goes here'
]);

```

\*\* Remember to pass through an array key for 'message' when doing this \*\*

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

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

Unknown

Total

1

Last Release

1668d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/31ebf19e87e6995ce82d450b0d7a6fbab7e4096a6955f9366a182a436330cbf6?d=identicon)[ThomasMountain](/maintainers/ThomasMountain)

---

Tags

laravelslack

### Embed Badge

![Health badge](/badges/mountain-laraslack/health.svg)

```
[![Health](https://phpackages.com/badges/mountain-laraslack/health.svg)](https://phpackages.com/packages/mountain-laraslack)
```

###  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)[beyondcode/slack-notification-channel

Slack Notification Channel for Laravel using API tokens.

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

A simple PHP package for sending messages to Slack.

10895.4k1](/packages/jeremykenedy-slack)

PHPackages © 2026

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