xmolecules/phpmolecules
63.5
Adequate · 9 November 2026
152
lines of production code
PHP
primary language
7
measurements over time
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 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 63 → 63 (+0.0)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 100 → 100 (+0.0)
- Architecture 69 → 69 (+0.0)
- Maturity 48 → 48 (+0.0)
- Readiness 78 → 78 (+0.0)
- Security 92 → 92 (+0.0)
Findings
- No change — the same findings as the prior survey.
Written by cca.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 9 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 366305bfd7bbbd6554b34981e8869ac83e50d547 — 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.3+preprod-bb0cb800cd0f.