PHPackages                             danbettles/slack-logger - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. danbettles/slack-logger

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

danbettles/slack-logger
=======================

A simple but effective PSR-compliant logger that sends log-entries to a Slack incoming webhook

v1.0.1(1y ago)0592↓86.7%ISCPHPPHP ^8.3

Since Oct 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/danbettles/slack-logger)[ Packagist](https://packagist.org/packages/danbettles/slack-logger)[ RSS](/packages/danbettles-slack-logger/feed)WikiDiscussions main Synced today

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

Slack Logger
============

[](#slack-logger)

A simple but effective [PSR-compliant](https://www.php-fig.org/psr/psr-3/) logger that sends log-entries to a [Slack incoming webhook](https://api.slack.com/messaging/webhooks).

Basic Usage
-----------

[](#basic-usage)

Create an instance of the logger:

```
use DanBettles\SlackLogger\Logger;

$logger = Logger::create(
    '',
    '',
);
```

Create log-entries (as you would using any PSR-compliant logger):

```
$logger->debug('Enemy tanks approaching');

$logger->emergency('Send out the patrol!', [
    'exception' => $ex,
]);
```

References
----------

[](#references)

- [PSR-3: Logger Interface](https://www.php-fig.org/psr/psr-3/)
- [Sending messages using incoming webhooks](https://api.slack.com/messaging/webhooks)
- [Slack Block Kit Builder](https://app.slack.com/block-kit-builder/)
- [Emoji Cheat Sheet](https://www.webfx.com/tools/emoji-cheat-sheet/)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity56

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

Total

2

Last Release

623d ago

### Community

Maintainers

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/danbettles-slack-logger/health.svg)

```
[![Health](https://phpackages.com/badges/danbettles-slack-logger/health.svg)](https://phpackages.com/packages/danbettles-slack-logger)
```

###  Alternatives

[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k247.1M334](/packages/sentry-sentry)[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k373.5M3.3k](/packages/symfony-cache)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[illuminate/log

The Illuminate Log package.

6225.3M622](/packages/illuminate-log)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[api-platform/metadata

API Resource-oriented metadata attributes and factories

275.0M219](/packages/api-platform-metadata)

PHPackages © 2026

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