AliReaza/event-driven-kafka
50.7
Adequate · 10 November 2026
200
lines of production code
PHP
primary language
9
measurements over time
What this system is
This system is a PHP-based event-driven messaging service that interfaces with Apache Kafka for publishing and consuming events. It provides configurable producers and consumers, allowing for flexible control over message dispatching and listening behaviors. The codebase is structured around a shared configuration model for Kafka connections, supported by a corresponding test suite.
Behavioural changes
Refactor Kafka integration to use shared connection configuration
The Kafka integration has been refactored to use a shared \Conf\ object for connection configuration, replacing the previous approach of passing server strings and creating new \Conf\ objects internally. In \EventDispatcher\, the constructor now accepts a \Conf\ instance, and the dispatch logic uses \producev\ with configurable partition, message flags, and timeout. In \ListenerProvider\, the constructor also accepts a \Conf\ instance, and the \subscribe\ method now supports a timeout parameter and uses the shared configuration. Both classes now expose setter methods for configuration: \EventDispatcher\ exposes \setPartition\, \setMsgFlags\, and \setTimeoutMs\, while \ListenerProvider\ exposes \setConsumerTimeoutMs\ and \setPartitions\. This change simplifies configuration management and allows for more flexible control over Kafka producer and consumer behavior.
src · high confidence
Test coverage
Added newline at end of test files
Fixed missing newlines at the end of the EventDispatcherTest and ListenerProviderTest files, ensuring proper file formatting in the test suite.
tests · high confidence
Dependencies
Update package version and dependencies
The package version has been updated to 1.2.0. Dependencies have been upgraded: alireaza/uuid and alireaza/event-driven to version 1.2.0, and ext-rdkafka to 6.0. Additionally, the PHPUnit dev dependency has been updated to ^9.5.16, and funding information for LinkedIn has been added to the package metadata.
(dependencies) · medium confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 51 → 51 (+0.0)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 71 → 71 (+0.0)
- Architecture 69 → 69 (+0.0)
- Maturity 49 → 49 (+0.0)
- Readiness 38 → 38 (+0.0)
- Security 100 → 100 (+0.0)
Resolved (3)
- Documentation: no project overview (README.md)
- Inconsistent handling of message/event objects. 'dispatch' takes a generic 'object' and returns an 'object', while 'messageHandler' takes a specific 'Message' type and returns a 'Message'. This suggests a lack of type safety in the dispatcher and a potential inconsistency in how events are represented internally (plain objects vs Message instances).
- Redundant method name across distinct domains. While both set a message provider, the context differs (dispatching vs listening). However, 'setMessageProvider' is a generic name that doesn't clearly indicate what is being set (e.g., serialization, deserialization, or routing). If these refer to the same underlying mechanism (e.g., how messages are serialized/deserialized), the naming is too vague. If they refer to different mechanisms, the name is misleading.
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
AliReaza/event-driven-kafka was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 10 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 1e1099cbe8292d2fddb914429ebe43eac37c5a0b — the exact code this score is about.
- Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.4+preprod-464a0040a931.