PHPackages                             krisell/startup-slack-notification-laravel - 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. krisell/startup-slack-notification-laravel

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

krisell/startup-slack-notification-laravel
==========================================

Adds a command to send a startup notification on slack.

v2.0.1(2mo ago)08.8k↓39.1%[2 PRs](https://github.com/Krisell/startup-slack-notification-laravel/pulls)MITPHPCI passing

Since Nov 24Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/Krisell/startup-slack-notification-laravel)[ Packagist](https://packagist.org/packages/krisell/startup-slack-notification-laravel)[ RSS](/packages/krisell-startup-slack-notification-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (10)Used By (0)

Startup Slack Notification for Laravel
======================================

[](#startup-slack-notification-for-laravel)

This package adds a command, `startup-notification:slack` which sends a startup-notification to slack to inform you when the server is started. This is useful during a deploy to get a notification when the deployment has been completed, during horizontal scaling to be notified when new servers are started, and to be notified if your server is restarted for unexpected reasons.

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

[](#installation)

Add the package to your Laravel project.

```
composer require krisell/startup-slack-notification-laravel
```

The package is configured for automatic discovery, so unless you have other settings, you do not need to manually add the service provider.

Usage
-----

[](#usage)

Add your slack hook, either to the .env-variable `STARTUP_SLACK_HOOK=` or by publishing the configuration (using `php artisan vendor:publish`) and setting the `slack_hook` config value.

Run the command `startup-notification:slack` during server boot.

Defining custom data
--------------------

[](#defining-custom-data)

You can optionally define custom data to be sent along the notification in `services.startup-slack-notification.data`. Any key-value pairs added there will be sent along with the Slack notification.

Testing an actual message
-------------------------

[](#testing-an-actual-message)

One of the tests is prepared to send an acutal slack message. To run this test, create a `.hook`-file in the `/tests` directory and set the contents to a slack hook URL. Alternatively, you may add the `STARTUP_SLACK_HOOK` env value to `phpunit.xml.dist`.

All other tests mock the actual sending of the notification, and instead makes assertions on the contents before transmission.

Licence
-------

[](#licence)

MIT

Author
------

[](#author)

Martin Krisell ()

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance82

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~574 days

Total

5

Last Release

72d ago

Major Versions

v1.1.0 → v2.0.02024-06-06

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25909128?v=4)[Martin Sandström Krisell](/maintainers/Krisell)[@Krisell](https://github.com/Krisell)

---

Top Contributors

[![Krisell](https://avatars.githubusercontent.com/u/25909128?v=4)](https://github.com/Krisell "Krisell (25 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/krisell-startup-slack-notification-laravel/health.svg)

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

###  Alternatives

[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)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[awssat/discord-notification-channel

Discord Notification Channel for laravel.

94122.8k](/packages/awssat-discord-notification-channel)[netflie/laravel-notification-whatsapp

Laravel notification driver for WhatsApp

176173.9k](/packages/netflie-laravel-notification-whatsapp)[opcodesio/mail-parser

Parse emails without the mailparse extension

226.8M8](/packages/opcodesio-mail-parser)

PHPackages © 2026

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