PHPackages                             sleipi/monolog2slackwebhook - 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. sleipi/monolog2slackwebhook

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

sleipi/monolog2slackwebhook
===========================

send messages to slack webhook

0.9.0(9y ago)1322PHP

Since Aug 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/sleipi/monolog2slackwebhook)[ Packagist](https://packagist.org/packages/sleipi/monolog2slackwebhook)[ RSS](/packages/sleipi-monolog2slackwebhook/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Slack Webhook Handler for Monolog
=================================

[](#slack-webhook-handler-for-monolog)

[![Build Status](https://camo.githubusercontent.com/f97c129e61b7476d9e311b3a45d4f35bbb9930f66b0994acfa0f5996daebc77f/68747470733a2f2f7472617669732d63692e6f72672f736c656970692f6d6f6e6f6c6f6732736c61636b776562686f6f6b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sleipi/monolog2slackwebhook)

Monolog Handler to push log messages to a slack webhook.

Preview
=======

[](#preview)

[![Send Log Messages to Slack](https://raw.githubusercontent.com/sleipi/monolog2slackwebhook/master/example/slack_example.png)](https://raw.githubusercontent.com/sleipi/monolog2slackwebhook/master/example/slack_example.png)

Usage
=====

[](#usage)

```
//define your slack webhook Url
$slackWebhookUrl = "https://hooks.slack.com/services/";

// let's build our Handler
$slack = new SlackWebhookHandler(
    $slackWebhookUrl, \Monolog\Logger::DEBUG
);

// configure how your Slack Message should look like
$initSlackMessage = (new SlackMessage())
    ->setFooter("PubTonic")
    ->setFooterIcon("https://tonic.com/img/social/202x202.png");

// ... create a SlackMessageFormater
$slack->setFormatter(new SlackMessageFormatter($initSlackMessage));

// ... finally we can build a Logger Object
$logger = new \Monolog\Logger('slack', [$slack]);

// ... and do some logging
$logger->debug("My Debug ");

$logger->info('My Info Message', [
    (new Field())->setTitle('Priority')->setValue('Small Info'),
    (new Field())->setTitle('Info')->setValue('Another small Info')
]);

$logger->notice('My Notice Message', [
    (new SlackMessage())->setPretext('Irgendwas ist passiert')
]);

$logger->warning("My Multiline\nWarning Message");

$logger->error('My Error Message for ');
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3563d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bf6c8f85fa4f281b3bada4683a37165b45260182a83832d116fc59cc111576de?d=identicon)[sleipi](/maintainers/sleipi)

---

Top Contributors

[![sleipi](https://avatars.githubusercontent.com/u/1415186?v=4)](https://github.com/sleipi "sleipi (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sleipi-monolog2slackwebhook/health.svg)

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

###  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.3M228](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M52](/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)
