PHPackages                             thecodingmachine/laravel-server-monitor-plugin-notification-by-host - 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. thecodingmachine/laravel-server-monitor-plugin-notification-by-host

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

thecodingmachine/laravel-server-monitor-plugin-notification-by-host
===================================================================

Monitor servers plugin to send notification by host

0.2(8y ago)021MITPHP

Since Dec 14Pushed 8y ago6 watchersCompare

[ Source](https://github.com/thecodingmachine/laravel-server-monitor-plugin-notification-by-host)[ Packagist](https://packagist.org/packages/thecodingmachine/laravel-server-monitor-plugin-notification-by-host)[ Docs](https://github.com/thecodingmachine/laravel-server-monitor-plugin-notification-by-host)[ RSS](/packages/thecodingmachine-laravel-server-monitor-plugin-notification-by-host/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b2ed9da2d8889c09e26d31d115bba4505176cf0df4cf60f5e7176a535bc030c2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746865636f64696e676d616368696e652f6c61726176656c2d7365727665722d6d6f6e69746f722d706c7567696e2d6e6f74696669636174696f6e2d62792d686f73742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/thecodingmachine/laravel-server-monitor-plugin-notification-by-host/?branch=master)[![Build Status](https://camo.githubusercontent.com/0cc8571a3a3f89b5cdc1c583e3fd39197549f1ac239cf2a2d3fd51ebda52179c/68747470733a2f2f7472617669732d63692e6f72672f746865636f64696e676d616368696e652f6c61726176656c2d7365727665722d6d6f6e69746f722d706c7567696e2d6e6f74696669636174696f6e2d62792d686f73742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/thecodingmachine/laravel-server-monitor-plugin-notification-by-host)[![Coverage Status](https://camo.githubusercontent.com/508bfc6121b29fef67b2787b20bfb19cfc7bd0c7325a06296c0156fb40f26761/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f746865636f64696e676d616368696e652f6c61726176656c2d7365727665722d6d6f6e69746f722d706c7567696e2d6e6f74696669636174696f6e2d62792d686f73742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/thecodingmachine/laravel-server-monitor-plugin-notification-by-host?branch=master)

Plugin to Laravel server Monitor
================================

[](#plugin-to-laravel-server-monitor)

This plugin is to use a different notification way by host for the [Laravel server monitor](https://github.com/spatie/laravel-server-monitor) developed by spatie

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

[](#installation)

You can install this package via composer using this command:

```
composer require spatie/laravel-server-monitor
```

Next, you must install the service provider:

```
// config/app.php
'providers' => [
    ...
    TheCodingMachine\ServerMonitorPluginNotificationbyHost\ServerMonitorPluginNotificationByHostServiceProvider::class,
];
```

You must publish the config-file with:

```
php artisan vendor:publish --provider="TheCodingMachine\ServerMonitorPluginNotificationbyHost\ServerMonitorPluginNotificationByHostServiceProvider" --tag="config"
```

This is the contents of the published config file:

```
return [
    'notifications' => [
        /* List of each channel you can be used */
        /* This contain the detail of parameter mandatory to use it */
        'channels' =>
			['mail' =>
				['to' => 'array']],
			['slack' =>
				['webhook_url' => 'string']],

    ]
];
```

To use the plugin, you must change the server-monitor.php with the next values:

```
    ...

    'notifications' => [

        'notifications' => [
            TheCodingMachine\ServerMonitorPluginNotificationByHost\Notifications\Notifications\CheckSucceeded::class => [],
            TheCodingMachine\ServerMonitorPluginNotificationByHost\Notifications\Notifications\CheckRestored::class => ['slack'],
            TheCodingMachine\ServerMonitorPluginNotificationByHost\Notifications\Notifications\CheckWarning::class => ['slack'],
            TheCodingMachine\ServerMonitorPluginNotificationByHost\Notifications\Notifications\CheckFailed::class => ['slack'],
        ],
        ...
        'notifiable' => TheCodingMachine\ServerMonitorPluginNotificationByHost\Notifications\Notifiable::class,
        ...
    ]
    ...
```

Use it
------

[](#use-it)

By default, if no custom configuration was configured, this is the global parameters set in server-monitor.php which will used. You can change the configuration by host (mail receiver, slack channel ...), and the channel by error type by host.

To apply this, there is 2 new commands add to artisan:

- Add notification for a specific host: php artisan server-monitor:add-notification-host
- List all notification by host: php artisan server-monitor:list-notifications

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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 ~12 days

Total

2

Last Release

3059d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1847918?v=4)[TheCodingMachine](/maintainers/thecodingmachine)[@thecodingmachine](https://github.com/thecodingmachine)

---

Tags

pluginspatienotificationlaravel-server-monitor

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thecodingmachine-laravel-server-monitor-plugin-notification-by-host/health.svg)

```
[![Health](https://phpackages.com/badges/thecodingmachine-laravel-server-monitor-plugin-notification-by-host/health.svg)](https://phpackages.com/packages/thecodingmachine-laravel-server-monitor-plugin-notification-by-host)
```

###  Alternatives

[symfony/notifier

Sends notifications via one or more channels (email, SMS, ...)

80640.3M290](/packages/symfony-notifier)[kartik-v/yii2-widget-growl

A widget to generate growl based notifications using bootstrap-growl plugin (sub repo split from yii2-widgets)

384.2M14](/packages/kartik-v-yii2-widget-growl)[kartik-v/yii2-widget-alert

A widget to generate alert based notifications using bootstrap-alert plugin (sub repo split from yii2-widgets)

284.1M24](/packages/kartik-v-yii2-widget-alert)[pyrech/composer-notifier

Display desktop notifications when composer finishes to install / update

411.7k](/packages/pyrech-composer-notifier)

PHPackages © 2026

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