Skip to content
CAI
Produce a survey ↗Verify a survey

somnambulist-tech/domain

This system is a PHP component library providing domain-driven design primitives, including abstract base classes for entities, value objects, and aggregate roots. It implements a structured query bus for data retrieval and a robust event handling system that integrates with Doctrine and Symfony Messenger for asynchronous processing. The library also offers utility classes for identity generation, object comparison, and test assertions to streamline development and testing workflows.

58.5

Adequate · 4 August 2026

5k

lines of production code

PHP

primary language

1

bus factor · 2 authors in all

3

measurements over time

CAI band scale
CAI trend line

How it got here

2019 · Domain model modernization

This period focused on a comprehensive architectural shift, removing legacy domain entities, value objects, and event handling mechanisms in favor of a modernized, component-based structure. The refactoring included migrating namespaces to Somnambulist\Components, updating PHPUnit configurations, and introducing new query and utility abstractions to replace older patterns.

28 changes

2020 · Event and job queue integration

This period focused on integrating the Symfony Messenger component to handle domain events, queries, and job queues. The work introduced new adapters, publishers, and behaviors to support automatic event dispatching, contextual data enrichment, and job processing within the library.

12 changes

2022–2025 · Domain model and query response architecture

This period focused on establishing a structured domain-driven design foundation by introducing abstract base classes for entities, value objects, and aggregate roots. Concurrently, the codebase standardized query handling through new contract interfaces and specialized response types, supported by comprehensive test coverage for both domain models and query mechanisms.

5 changes

CAI lens gauges

Survey your own repository

somnambulist-tech/domain 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 the surveyor at a repository you know and see whether you agree with it.

Survey a repository

About this page

  • The description of this project is derived from its own commit history, not from its README.
  • The score is its highest published measurement, taken on 4 August 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 435d79c79b — the exact code this score is about.
  • Scored under rubric rubric-2026.08.19. Score the same commit under that rubric and you get the same number.
CAI link cards