Skip to content
CAI
Software that uses CAICheck a score

prooph/event-store-bus-bridge

58.8

Adequate · 20 September 2026

419

lines of production code

PHP

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a PHP library that bridges an event store with a service bus to ensure transactional consistency and event traceability. It automatically wraps command dispatches in transactions, defers event publishing until commit, and enriches domain events with causation metadata. The library provides container factories for flexible dependency injection and includes comprehensive test coverage for its core components.

Features

Added container factories for EventPublisher and TransactionManager

New factory classes (EventPublisherFactory and TransactionManagerFactory) have been added to the Container component to simplify the instantiation of EventPublisher and TransactionManager services. These factories allow users to configure custom service names for the underlying EventBus and EventStore dependencies via the container, enabling more flexible dependency injection setups without hardcoding service identifiers.

src/Container · high confidence

New transactional event handling and causation metadata enrichment

This release introduces three new components to the event-store-bus bridge: a TransactionManager that automatically wraps command dispatches in event store transactions (committing on success, rolling back on exception), an EventPublisher that dispatches recorded events to the service bus (deferring dispatch until transaction commit if inside a transaction), and a CausationMetadataEnricher that attaches configurable causation ID and name metadata to domain events. These changes enable automatic transactional consistency for command handlers and better event traceability.

src · high confidence

Test coverage

Added tests for CausationMetadataEnricher, EventPublisher, and TransactionManager; Added tests for container factory classes.

Dependencies

Initial release of prooph/event-store-bus-bridge

This change introduces the initial composer.json for the prooph/event-store-bus-bridge library, establishing the project's dependency requirements. It specifies support for PHP 7.3 and 8.0, and defines production dependencies on prooph/common (^4.2.1), prooph/service-bus (^6.3), and prooph/event-store (^7.3.1). Development dependencies include PHPUnit ^9.3, Prophecy, and various prooph tooling packages for code style and documentation.

(dependencies) · high confidence

Housekeeping

Repository initialization and CI configuration

The repository has been initialized with standard development tooling, including a Travis CI configuration that tests the project against PHP 7.3, 7.4, and 8.0, a PHPUnit configuration for running the test suite, and a PHP CS Fixer setup to enforce code style consistency.

(repo-wide) · high confidence

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 57 → 59 (+1.3)
  • Rubric changed (rubric-2026.08.17 → rubric-2026.09.15) — scores are not directly comparable.

Lenses

  • Code Health 98 → 99 (+0.6)
  • Architecture 69 → 69 (+0.0)
  • Maturity 48 → 43 (-4.8)
  • Readiness 50 → 63 (+13.7)
  • Security 100 → 100 (+0.0)

Resolved (5)

  • Coverage not included — suite not readable by the collector
  • Dependency hygiene not measured — no supported dependency manifest was read
  • No exposed public API
  • Test reliability not included
  • dormant codebase — no living knowledge left to concentrate

New (4)

  • Dependency hygiene PARTLY measured — Composer dependencies read, no committed lock to grade for currency
  • Documentation: no installation or build instructions (README.md)
  • Duplicated block (7 lines × 2) (src/Container/EventPublisherFactory.php)
  • No dependency advisory monitoring

Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

prooph/event-store-bus-bridge 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 20 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 8df1c8ab6ea3ad9254117e40af827bdd8841c7e4 — the exact code this score is about.
  • Scored under rubric-2026.09.15 — the same rubric and the same method as every other entry in this index.
  • Measured by watchdog.canine.dev using codehealth-analyzer preprod-28e75b8e3254.