PHPackages                             lamoda/codeception-kafka - 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. lamoda/codeception-kafka

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

lamoda/codeception-kafka
========================

Kafka helper for codeception tests

0.0.2(5y ago)62145MITPHPPHP &gt;=7.1

Since Apr 9Pushed 5y ago4 watchersCompare

[ Source](https://github.com/lamoda/codeception-kafka)[ Packagist](https://packagist.org/packages/lamoda/codeception-kafka)[ RSS](/packages/lamoda-codeception-kafka/feed)WikiDiscussions master Synced 1w ago

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

Codeception Kafka Extension
===========================

[](#codeception-kafka-extension)

THIS MODULE IS NOT PRODUCTION READY
-----------------------------------

[](#this-module-is-not-production-ready)

This extension supports working with Apache Kafka.

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

[](#installation)

1. Install library

    ```
    composer require lamoda/codeception-kafka
    ```
2. Create message serializer for your data transfer object

```
namespace Tests\KafkaModule;

use App\EventBus\DtoInterface;
use Lamoda\Codeception\Extension\MessageSerializer\MessageSerializerInterface;

class AcmeMessageSerializer implements MessageSerializerInterface
{
    public function serialize($dto): string
    {
        if (!$dto instanceif DtoInterface) {
            throw new \RuntimeException('This value must be an ' . DtoInterface::class);
        }

        $message = json_encode($dto->toArray());

        if (!is_string($message)) {
            throw new \RuntimeException(json_last_error(), json_last_error_msg());
        }

        return $message;
    }
}

```

The default message serializer is Lamoda\\Codeception\\Extension\\MessageSerializer\\ArrayMessageSerializer.

2. Include to suite and configure ```
    modules:
        enabled:
            - \Lamoda\Codeception\Extension\KafkaModule
                 serializer: 'Tests\KafkaModule\AcmeMessageSerializer'
                 config:
                     metadata.broker.list: '192.168.99.100:9092'
                     group.id: 'group_for_tests'
                 topic_config:
                     offset.store.sync.interval.ms: '0'
                     auto.commit.interval.ms: '500'
                     auto.offset.reset: 'smallest'
    ```

Development
-----------

[](#development)

### PHP Coding Standards Fixer

[](#php-coding-standards-fixer)

```
make php-cs-check
make php-cs-fix
```

### Tests

[](#tests)

Unit

```
make test-unit
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~326 days

Total

2

Last Release

1902d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4680327?v=4)[Anton Trekov](/maintainers/AntonTrekov)[@AntonTrekov](https://github.com/AntonTrekov)

---

Top Contributors

[![AntonTrekov](https://avatars.githubusercontent.com/u/4680327?v=4)](https://github.com/AntonTrekov "AntonTrekov (1 commits)")[![scaytrase](https://avatars.githubusercontent.com/u/6578413?v=4)](https://github.com/scaytrase "scaytrase (1 commits)")

---

Tags

codeceptioncodeception-modulekafkakafka-phpphpphp-kafkatest-kafka

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/lamoda-codeception-kafka/health.svg)

```
[![Health](https://phpackages.com/badges/lamoda-codeception-kafka/health.svg)](https://phpackages.com/packages/lamoda-codeception-kafka)
```

###  Alternatives

[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)[lucatume/wp-browser

A set of Codeception modules to test WordPress projects.

6343.8M153](/packages/lucatume-wp-browser)[codeception/module-asserts

Codeception module containing various assertions

8550.6M1.2k](/packages/codeception-module-asserts)[codeception/lib-innerbrowser

Parent library for all Codeception framework modules and PhpBrowser

8641.7M77](/packages/codeception-lib-innerbrowser)[codeception/module-symfony

Codeception module for Symfony framework

949.4M95](/packages/codeception-module-symfony)[captbaritone/mailcatcher-codeception-module

Test emails in your Codeception acceptance tests

1114.5M10](/packages/captbaritone-mailcatcher-codeception-module)

PHPackages © 2026

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