PHPackages                             cytec/zend-log-slack - 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. cytec/zend-log-slack

Abandoned → [cytec/laminas-log-slack](/?search=cytec%2Flaminas-log-slack)Library[Logging &amp; Monitoring](/categories/logging)

cytec/zend-log-slack
====================

Write laminas-log messages to a slack channel

3.1.0(4y ago)611.8k↓50%1BSD-3-ClausePHPPHP &gt;=7.4

Since Jan 30Pushed 4y ago4 watchersCompare

[ Source](https://github.com/cytecbg/laminas-log-slack)[ Packagist](https://packagist.org/packages/cytec/zend-log-slack)[ Docs](https://github.com/cytecbg/zend-log-slack)[ RSS](/packages/cytec-zend-log-slack/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (3)Versions (10)Used By (0)

laminas-log-slack
=================

[](#laminas-log-slack)

Write laminas-log messages to a slack channel

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

[](#installation)

```
composer require cytec/laminas-log-slack

```

Slack Configuration
-------------------

[](#slack-configuration)

The log writer works by sending information to a "Incoming WebHooks" integration in Slack:

1. Open the channel you would like to receive your log in.
2. Click on the channel name in the top left corner and from the drop down menu select "Add an app or integration"
3. Click "Build" (top right)
4. Click "Make a custom integration"
5. Choose "Incoming WebHooks"
6. Click the large green "Add Incoming WebHooks integration"

You'll need the Webhook URL to configure the writer. Under "Integration Settings" you can customize some defaults.

Usage
-----

[](#usage)

### Manual

[](#manual)

```
$writer = new \Cytec\Log\Writer\Slack('');

//Optional - use this filter only if you want to send critical messages to Slack
$writer->addFilter(new \Laminas\Log\Filter\Priority(\Laminas\Log\Logger::CRIT));

$logger = new \Laminas\Log\Logger();
$logger->addWriter($writer);

$logger->info('Informational message');
$logger->crit('Critical message');

//second "extra" parameter is supported and printed as properties in slack
$logger->crit('Critical message', $_SERVER);
```

### Via Service manager

[](#via-service-manager)

Somewhere in your configuration (eg. config/autoload/global.php) add

```
...
'log' => [
    'SlackLog' => [
        'writers' => [
            'default' => [
                'name' => 'Cytec\Log\Writer\Slack',
                'options' => [
                    'webhook_url' => '',
                    'bot_name' => 'Project Name',   //optional
                    'channel_override' => '#alerts',//optional @person is also supported
                    'filters' => \Laminas\Log\Logger::CRIT,      //optional - filter by priority
                ]
            ]
        ]
    ]
],
...
```

And then you can get the logger via the service manager:

```
$log = $this->getServiceManager()->get('SlackLog');
$log->crit('Critical message');
```

Keep in mind
------------

[](#keep-in-mind)

This writer isn't suitable for constant writing due to the fact that log messages are sent via http interface to the Slack api. This makes it very slow and can add significant delay in application response times. The intended use is for critical or very high priority messages that need the immediate attention of a real person.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity69

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

Recently: every ~125 days

Total

9

Last Release

1754d ago

Major Versions

1.1.0 → 2.0.02020-03-19

2.0.1 → 3.0.02021-07-06

PHP version history (2 changes)v1.0.0PHP ^5.6 || ^7.0

3.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/296401830153095c5e52d6abc8d80051ad6880b8868dba8cff28e68821159be4?d=identicon)[ptodorov](/maintainers/ptodorov)

---

Top Contributors

[![peterprototypes](https://avatars.githubusercontent.com/u/7164437?v=4)](https://github.com/peterprototypes "peterprototypes (22 commits)")

---

Tags

loglaminasloggingslackwriterzf2zf3

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cytec-zend-log-slack/health.svg)

```
[![Health](https://phpackages.com/badges/cytec-zend-log-slack/health.svg)](https://phpackages.com/packages/cytec-zend-log-slack)
```

###  Alternatives

[monolog/monolog

Sends your logs to files, sockets, inboxes, databases and various web services

21.4k964.9M7.0k](/packages/monolog-monolog)[symfony/monolog-bundle

Symfony MonologBundle

2.9k249.1M1.5k](/packages/symfony-monolog-bundle)[sentry/sentry

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

1.9k227.1M271](/packages/sentry-sentry)[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k114.3M154](/packages/sentry-sentry-laravel)[sentry/sdk

This is a meta package of sentry/sentry. We recommend using sentry/sentry directly.

327134.8M151](/packages/sentry-sdk)[facile-it/sentry-module

This module allows integration of Sentry Client into laminas and mezzio

19372.5k](/packages/facile-it-sentry-module)

PHPackages © 2026

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