PHPackages                             mathieuimbert/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. mathieuimbert/slack-logger

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

mathieuimbert/slack-logger
==========================

This is a simple package that allow a PHP script to send real time logs to Slack.

0.3.0(9y ago)123.7kApache-2.0PHP

Since Oct 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mathieuimbert/slack-logger)[ Packagist](https://packagist.org/packages/mathieuimbert/slack-logger)[ RSS](/packages/mathieuimbert-slack-logger/feed)WikiDiscussions master Synced 3w ago

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

slack-logger
============

[](#slack-logger)

### Packagist

[](#packagist)

[![Latest Stable Version](https://camo.githubusercontent.com/f74e8af9fa833145a795c1edec2b5cedfb4597d77c66a8140ebdfa09840cad33/68747470733a2f2f706f7365722e707567782e6f72672f6d617468696575696d626572742f736c61636b2d6c6f676765722f762f737461626c65)](https://packagist.org/packages/mathieuimbert/slack-logger)[![Latest Unstable Version](https://camo.githubusercontent.com/6a35f03455830132829d9b31ba430432e238efce37b761d7be8405c381d59a3e/68747470733a2f2f706f7365722e707567782e6f72672f6d617468696575696d626572742f736c61636b2d6c6f676765722f762f756e737461626c65)](https://packagist.org/packages/mathieuimbert/slack-logger)[![Total Downloads](https://camo.githubusercontent.com/9090fa4ec6795f55dbaefa7ca131bb9313e94d16fcb28d4e8bcea269d91e991b/68747470733a2f2f706f7365722e707567782e6f72672f6d617468696575696d626572742f736c61636b2d6c6f676765722f646f776e6c6f616473)](https://packagist.org/packages/mathieuimbert/slack-logger)[![License](https://camo.githubusercontent.com/898d8be37bb60a78b0cf0f61eb39578414bb0288406a32324a830ad00a076f82/68747470733a2f2f706f7365722e707567782e6f72672f6d617468696575696d626572742f736c61636b2d6c6f676765722f6c6963656e7365)](https://packagist.org/packages/mathieuimbert/slack-logger)

### Unit Tests

[](#unit-tests)

[![Build Status](https://camo.githubusercontent.com/d64805355f7d6ba4b37d592ce25721c4986dd587d37c9eb5c6004f5543633317/68747470733a2f2f7472617669732d63692e6f72672f6d617468696575696d626572742f736c61636b2d6c6f676765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mathieuimbert/slack-logger)[![Coverage Status](https://camo.githubusercontent.com/5f290fa72cd6d2b121f245bf28946acd0f19cca967be622f972dd9c9822b997c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d617468696575696d626572742f736c61636b2d6c6f676765722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/mathieuimbert/slack-logger?branch=master)

### Code Quality

[](#code-quality)

[![SensioLabsInsight](https://camo.githubusercontent.com/4b86b147067b14125441503eca351f73bb170096b4580bc39b6bd6f6bbfb0700/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f37633263383232642d383537662d346236392d383734642d6434653738623964316532342f6269672e706e67)](https://insight.sensiolabs.com/projects/7c2c822d-857f-4b69-874d-d4e78b9d1e24)

Description
-----------

[](#description)

This is a simple package that allow a PHP script to send real time logs to Slack.

Please be aware that the repository is still in an early phase, and every new commit might not be backward compatible.

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

[](#installation)

Installation of Slack Logger is done using [Composer](https://getcomposer.org/).

```
composer require mathieuimbert/slack-logger

```

Usage
-----

[](#usage)

- Create an [Incoming Webhook](https://my.slack.com/services/new/incoming-webhook/) for your slack account. Make sure to read the [full documentation](https://api.slack.com/incoming-webhooks)
- Instantiate SlackLogger in your script, and start sending logs to Slack

```
$logger = new \MathieuImbert\Slack\Logger\SlackLogger('https://hooks.slack.com/services/xxxxxxx/xxxxxxx/xxxxxxx');
$logger->warning('This a not test of the emergency broadcast system, this is the real thing');
```

### Options

[](#options)

You can customize the name and the icon of your logger in the incoming webhook configuration, or you can do it from SlackLogger by passing the right options to he constructor:

```
$logger = new \MathieuImbert\SlackLogger\SlackLogger(
    'https://hooks.slack.com/services/xxxxxxx/xxxxxxx/xxxxxxx',
    array('username' => 'My Slack Logger', 'icon_emoji' => ':cop:')
);
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Every ~47 days

Total

4

Last Release

3395d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3279500?v=4)[Mathieu Imbert](/maintainers/mathieuimbert)[@mathieuimbert](https://github.com/mathieuimbert)

---

Top Contributors

[![mathieuimbert](https://avatars.githubusercontent.com/u/3279500?v=4)](https://github.com/mathieuimbert "mathieuimbert (3 commits)")

---

Tags

loggingslack

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k532.1M19.4k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19564.8M1.6k](/packages/drupal-core)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6941.5M396](/packages/drupal-core-recommended)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

749284.3k35](/packages/civicrm-civicrm-core)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)

PHPackages © 2026

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