PHPackages                             diegocomis/cakephp-slack-log-engine - 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. diegocomis/cakephp-slack-log-engine

ActiveCakephp-plugin

diegocomis/cakephp-slack-log-engine
===================================

Slack log engine for CakePHP

1750PHP

Since Sep 19Pushed 2y agoCompare

[ Source](https://github.com/diegocomis/cakephp-slack-log-engine)[ Packagist](https://packagist.org/packages/diegocomis/cakephp-slack-log-engine)[ RSS](/packages/diegocomis-cakephp-slack-log-engine/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/11383c4df14587da0a2ded6d1c352e1a7a6135d9be2523f47398b4b2b73b1acb/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6869726f6d69323432342f63616b657068702d736c61636b2d6c6f672d656e67696e652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/hiromi2424/cakephp-slack-log-engine)[![Coverage Status](https://camo.githubusercontent.com/0ca2d8bfd1a6ebd4742014f97b0faf9398e9c2f40cac99f1c07cb1ccb09687bc/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6869726f6d69323432342f63616b657068702d736c61636b2d6c6f672d656e67696e652e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/github/hiromi2424/cakephp-slack-log-engine)[![Total Downloads](https://camo.githubusercontent.com/f6400f8f715055d0393bb5fe669b10e100d745cd36ca67657222fd3d7b4d58bc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6869726f6d69323432342f63616b657068702d736c61636b2d6c6f672d656e67696e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hiromi2424/cakephp-slack-log-engine)[![Latest Stable Version](https://camo.githubusercontent.com/9cf701998a8d1a0dccaa54d046363eeef81cad31fe1856031a24c762c9942e0e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6869726f6d69323432342f63616b657068702d736c61636b2d6c6f672d656e67696e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hiromi2424/cakephp-slack-log-engine)[![Scrutinizer](https://camo.githubusercontent.com/d1805efa967f25f18e82ab9bece015b1d372fd0be8ee668176363cd6e9a7fb71/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6869726f6d69323432342f63616b657068702d736c61636b2d6c6f672d656e67696e652e737667)](https://scrutinizer-ci.com/g/hiromi2424/cakephp-slack-log-engine/)

What is this?
-------------

[](#what-is-this)

This is CakePHP plugin to provide a log engine that post to slack using incoming webhooks.

Please see detail [how to configure webhooks on slack](https://api.slack.com/incoming-webhooks).

The engine uses [Slack for PHP](https://github.com/maknz/slack) and is just thin wrapper for the library.

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

[](#installation)

```
composer require diegocomis/cakephp-slack-log-engine

```

Requirementscurl -sS  | php
--------------------------------------------------------------

[](#requirementscurl--ss-httpsgetcomposerorginstaller--php)

- CakePHP 4.1.7
- PHP 7.2

Usage
-----

[](#usage)

### Configure log

[](#configure-log)

In your app.php, you can configure like:

```
'Log' => [
    'error' => [
        'className' => 'SlackLogEngine\Log\Engine\SlackLogEngine',
        // Your slack hook URL here
        'hookUrl' => 'https://hooks.slack.com/services/xxxxx/xxxxx/xxxxxxxxxx',
        // Send logs of following levels to slack
        'levels' => ['error', 'critical', 'alert', 'emergency'],
    ],
],

```

### Log options

[](#log-options)

Either `client` or `hookUrl` is required.

- `hookUrl` \[string\] Slack hook url.
- `client` \[\\Maknz\\Slack\\Client\] Slack client instance for custom.
- `clientClass` \[string(optional)\] slack client class. This option is used only with `hookUrl` option.

Other available settings can be seen at [Slack for PHP Official Docs](https://github.com/maknz/slack#settings)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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.

### Community

Maintainers

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

---

Top Contributors

[![hiromi2424](https://avatars.githubusercontent.com/u/191297?v=4)](https://github.com/hiromi2424 "hiromi2424 (12 commits)")[![diegocomis](https://avatars.githubusercontent.com/u/86434311?v=4)](https://github.com/diegocomis "diegocomis (6 commits)")

### Embed Badge

![Health badge](/badges/diegocomis-cakephp-slack-log-engine/health.svg)

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

PHPackages © 2026

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