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

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

otezvikentiy/codeception-kafka
==============================

Kafka helper for codeception tests

1.1(1y ago)02MITPHPPHP &gt;=8.2

Since Feb 28Pushed 1y agoCompare

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

READMEChangelogDependencies (3)Versions (2)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 otezvikentiy/codeception-kafka
    ```
2. Create message serializer for your data transfer object

```
namespace Tests\KafkaModule;

use App\EventBus\DtoInterface;
use OtezVikentiy\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 OtezVikentiy\\Codeception\\Extension\\MessageSerializer\\ArrayMessageSerializer.

2. Include to suite and configure ```
    modules:
        enabled:
            - \OtezVikentiy\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

28

—

LowBetter than 54% of packages

Maintenance44

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

444d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f657af8595c7a4ea2cd722fed53f73ef305b87ecd8286968a0c261d005001f5?d=identicon)[OtezVikentiy](/maintainers/OtezVikentiy)

---

Top Contributors

[![OtezVikentiy](https://avatars.githubusercontent.com/u/19647948?v=4)](https://github.com/OtezVikentiy "OtezVikentiy (2 commits)")[![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)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/otezvikentiy-codeception-kafka/health.svg)](https://phpackages.com/packages/otezvikentiy-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)
