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(3mo ago)09.3k↓78.3%[2 PRs](https://github.com/Krisell/startup-slack-notification-laravel/pulls)MITPHPCI passing

Since Nov 24Pushed 1mo 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 3d ago

READMEChangelog (5)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

49

—

FairBetter than 94% of packages

Maintenance86

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

119d 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 (27 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

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.9k69.5k](/packages/grumpydictator-firefly-iii)[awssat/discord-notification-channel

Discord Notification Channel for laravel.

94131.9k](/packages/awssat-discord-notification-channel)[mehrancodes/laravel-harbor

A CLI tool to Quickly create On-Demand preview environment for your apps.

10097.5k](/packages/mehrancodes-laravel-harbor)[exceedone/exment

Management for Product, Client, Contracts, Subscription, ...

28038.8k](/packages/exceedone-exment)[spatie/laravel-backup-server

Backup multiple applications

17120.9k1](/packages/spatie-laravel-backup-server)

PHPackages © 2026

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