Skip to content
CAI
Software that uses CAICheck a score

xmolecules/phpmolecules

58.8

Adequate · 21 September 2026

152

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 provides Domain-Driven Design (DDD) attribute classes to support domain modeling. It includes tools for code analysis, static analysis, and testing workflows, along with unit tests to verify the functionality of the DDD attributes.

Features

Initial project configuration and tooling setup

The repository has been initialized with essential configuration files to support development and quality assurance. This includes an .editorconfig for consistent coding style, a .gitignore to exclude build artifacts and dependencies, and a README.md with installation and release instructions. Additionally, the project now includes configuration files for PHP\_CodeSniffer (phpcs.xml), PHPStan (phpstan.neon), and PHPUnit (phpunit.xml.dist), enabling automated code analysis, static analysis, and testing workflows.

(repo-wide) · high confidence

New DDD attribute classes for domain modeling

Added new PHP attributes to support Domain-Driven Design patterns, including AggregateRoot, Entity, Factory, Identity, Repository, Service, and ValueObject. These attributes allow developers to mark classes with specific DDD roles, enabling better tooling support and clearer domain modeling.

src/DDD · high confidence

Test coverage

Added unit tests for DDD attribute reflection

Added a new test file, DDDAttributeTests.php, which verifies the functionality of the \#\[ValueObject\] and \#\[Entity\] attributes using PHP reflection. The tests confirm that the attributes are correctly applied to the sample IBAN and BankAccount classes, ensuring the attribute system works as expected.

tests · high confidence

Dependencies

Introduce Composer configuration for PHPMolecules library

Added a new composer.json file that defines the project as a PHP library (Apache-2.0 license) with PSR-4 autoloading for the src/DDD and tests/DDD directories. The package requires PHP 8.0 or higher and includes PHPUnit 12, PHPStan 2.1, and SquizLabs PHP\_CodeSniffer 3.7 as development dependencies.

(dependencies) · 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

This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.

Score

  • CAI 59 → 59 (-0.1)
  • Rubric changed (rubric-2026.08.19 → rubric-2026.09.15) — scores are not directly comparable.

Lenses

  • Code Health 100 → 100 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 39 → 39 (+0.0)
  • Readiness 87 → 76 (-10.8)
  • Security 80 → 92 (+12.3)

Resolved (9)

  • Coverage not included — suite not readable by the collector
  • Dependency hygiene not measured — dependency manifest found but not parsed for hygiene
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • No exposed public API
  • Test reliability not included
  • complexity unreadable for .php — churn × complexity hotspots could not be measured
  • early-stage repository — too few commits for a meaningful bus factor
  • early-stage repository — too little history to judge knowledge freshness

New (5)

  • Documentation: no installation or build instructions (README.md)
  • Documentation: no usage examples (README.md)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • Workflow token permissions not restricted

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

Survey your own repository

xmolecules/phpmolecules 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 21 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 366305bfd7bbbd6554b34981e8869ac83e50d547 — 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-fa71c66cabd8.