PHPackages                             jiripavlicek/slack-codeception-extension - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. jiripavlicek/slack-codeception-extension

ActiveLibrary[Testing &amp; Quality](/categories/testing)

jiripavlicek/slack-codeception-extension
========================================

This package provides an extension for Codeception to broadcast test results in Slack messenger

1.8.1(4y ago)041.7kPHP

Since Dec 30Pushed 4y agoCompare

[ Source](https://github.com/jiripavlicek/slack-codeception-extension)[ Packagist](https://packagist.org/packages/jiripavlicek/slack-codeception-extension)[ RSS](/packages/jiripavlicek-slack-codeception-extension/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (17)Used By (0)

slack-codeception-extension
===========================

[](#slack-codeception-extension)

This package provides an extension for Codeception to send test results to Slack channels and/or users.

Pre-requisites
--------------

[](#pre-requisites)

- a pre-configured webhook from the Slack integration "Incoming Webhook" (see  for more information)

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

[](#installation)

Add the package `ngraf/slack-codeception-extension` to `composer.json` manually or type this in console:

```
composer require ngraf/slack-codeception-extension

```

Usage
-----

[](#usage)

Enable and configure the extension in your `codeception.yaml`

**Basic** usage:

```
extensions:
  enabled:
    - Codeception\Extension\SlackExtension
  config:
    Codeception\Extension\SlackExtension:
       webhook: https://hooks.slack.com/services/...

```

**Advanced** usage:

```
extensions:
  enabled:
    - Codeception\Extension\SlackExtension
  config:
    Codeception\Extension\SlackExtension:
      webhook:           https://hooks.slack.com/services/...

      # possible notification strategies: always|successonly|failonly|failandrecover|statuschange
      strategy:          always

      # If 'true' details about failed tests will be displayed. Default value: 'false'
      extended:          true

      # Limit the size of error messages in extended mode. 0 = unlimited. Default value: 80
      extendedMaxLength: 80

      # Limit the amount of reported errors in extended mode. 0 = unlimited. Default value: 0
      extendedMaxErrors: 10

      # Whether or not to show number of skipped tests in the summary. Default value: 'false'
      showNumberOfSkipped: true

      # customize your message with additional prefix and/or suffix

      messagePrefix:     '*Smoke-Test*'
      messageSuffix:
      messageSuffixOnFail:

      # optional config keys that will overwrite the default configuration of the webhook

      channel:           '#any-channel,@any-user'
      channelOnFail:     '#any-channel,@any-user'
      username:          CI
      icon:              :ghost:

```

Example
-------

[](#example)

[![slack-example](slack-example.png)](slack-example.png)

Dependencies
------------

[](#dependencies)

This package uses the package [maknz/slack](https://github.com/maknz/slack) to communicate with the Slack API.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 65.2% 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 ~122 days

Recently: every ~207 days

Total

15

Last Release

1698d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/306997078a7964f8e219a2b654082013dd9dd6ad0fe4c04ba8a72304151a8d3a?d=identicon)[jiripavlicek](/maintainers/jiripavlicek)

---

Top Contributors

[![ngraf](https://avatars.githubusercontent.com/u/7094389?v=4)](https://github.com/ngraf "ngraf (15 commits)")[![max107](https://avatars.githubusercontent.com/u/862272?v=4)](https://github.com/max107 "max107 (3 commits)")[![jiripavlicek](https://avatars.githubusercontent.com/u/1145071?v=4)](https://github.com/jiripavlicek "jiripavlicek (2 commits)")[![alek13](https://avatars.githubusercontent.com/u/1972329?v=4)](https://github.com/alek13 "alek13 (1 commits)")[![dannylinden](https://avatars.githubusercontent.com/u/5121876?v=4)](https://github.com/dannylinden "dannylinden (1 commits)")[![mrubiosan](https://avatars.githubusercontent.com/u/1294819?v=4)](https://github.com/mrubiosan "mrubiosan (1 commits)")

---

Tags

codeceptionslackextension

### Embed Badge

![Health badge](/badges/jiripavlicek-slack-codeception-extension/health.svg)

```
[![Health](https://phpackages.com/badges/jiripavlicek-slack-codeception-extension/health.svg)](https://phpackages.com/packages/jiripavlicek-slack-codeception-extension)
```

###  Alternatives

[codeception/lib-asserts

Assertion methods used by Codeception core and Asserts module

10458.1M14](/packages/codeception-lib-asserts)[site5/phantoman

The Codeception extension for automatically starting and stopping PhantomJS when running tests.

481.1M17](/packages/site5-phantoman)[mcustiel/phiremock-codeception-extension

Codeception extension for Phiremock. Allows to stub remote services for HTTP requests.

311.0M5](/packages/mcustiel-phiremock-codeception-extension)[mcustiel/codeception-http-mock

Extension for HTTP Mock.

1424.3k1](/packages/mcustiel-codeception-http-mock)[kolyunya/codeception-markup-validator

Markup validator module for Codeception.

1413.8k3](/packages/kolyunya-codeception-markup-validator)

PHPackages © 2026

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