Skip to content
CAI
Software that uses CAICheck a score

doctrine/instantiator

60.8

Adequate · 26 September 2026

346

lines of production code

PHP

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add Doctrine Instantiator component

Introduced the Doctrine Instantiator library, providing an \Instantiator\ class and \InstantiatorInterface\ that allow for the creation of object instances without invoking their constructors. The package includes a dedicated exception hierarchy (\ExceptionInterface\, \InvalidArgumentException\, \UnexpectedValueException\) to handle invalid states such as abstract classes, enums, or non-existent classes during instantiation.

src, src/Exception · high confidence

Initial project scaffolding and configuration

The repository was initialized with essential project files: a README, CONTRIBUTING guide, and MIT LICENSE. Configuration files for PHPStan, PHPUnit, PHPMD, PHPCS, and PHPBench were added to establish the development and testing environment. Additionally, .gitignore and .gitattributes were created to manage repository exports and ignored files, while .doctrine-project.json was added to define versioning metadata for the Instantiator project.

(repo-wide) · high confidence

Test coverage

Added performance benchmarks and unit tests for the Instantiator; Added test assets for edge cases; Added test coverage for Instantiator exception classes.

Dependencies

Package renamed to doctrine/instantiator with PHP 8.4 and modern tooling

The package has been renamed from ocramius/instantiator to doctrine/instantiator, with the namespace updated to Doctrine\\Instantiator. The minimum PHP version has been raised to 8.4, and the codebase has been migrated to PSR-4 autoloading. Development dependencies have been updated to modern versions, including PHPUnit 10.5.58, PHPStan 2.1, and Doctrine Coding Standard 14.

(dependencies) · medium 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 46 → 61 (+14.9)
  • Rubric changed (rubric-2026.08.15 → rubric-2026.09.15) — scores are not directly comparable.

Lenses

  • Code Health 100 → 100 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 54 → 48 (-6.1)
  • Readiness 32 → 73 (+40.3)
  • Security 50 → 70 (+19.7)

Resolved (9)

  • Coverage not measured — test suite did not build
  • Dimension evaluation failed
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • No artifact signing
  • No exposed public API
  • No tests found
  • Test reliability not included

New (12)

  • Documentation: no installation or build instructions (README.md)
  • Documentation: no usage examples (README.md)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • High: security finding (details withheld)
  • Off-boarding risk: anonymized user #1
  • 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

doctrine/instantiator 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 26 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 cbb879d6eea7ce605d95f4c455679df73ee682ea — 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-a15879f6f801.