Skip to content
CAI
Software that uses CAICheck a score

doctrine/instantiator

62.5

Adequate · 13 November 2026

350

lines of production code

PHP

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Initial project scaffolding and configuration

The repository has been initialized with essential project files, including a README, LICENSE, and CONTRIBUTING guide. Configuration files for the build and quality ecosystem have been added: .doctrine-project.json defines version metadata (2.1.x current, 2.2.x upcoming), .gitattributes and .gitignore manage export and local ignores, and tool-specific configs (phpunit.xml.dist, phpstan.neon.dist, phpcs.xml.dist, phpmd.xml.dist, phpbench.json) set up testing, static analysis, coding standards, and performance benchmarking.

(repo-wide) · high confidence

Behavioural changes

1 commit (0 fixes) modifying src

A change to existing behaviour in src — 1 commit, 1 file: “Temporarily ignore PHPStan false positive”. Also in this area: Simplified namespace structure for instantiator components.

src · low confidence · unverified

Simplified namespace structure for instantiator components

The instantiator classes and interfaces have been moved from the nested \src/Doctrine/Instantiator\ directory to the root \src\ directory. This change flattens the namespace hierarchy, meaning that classes such as \Instantiator\, \InstantiatorInterface\, and the exception classes (\InvalidArgumentException\, \UnexpectedValueException\, \ExceptionInterface\) are now located directly under the main source root rather than within the Doctrine Instantiator sub-package path.

src/Exception · high confidence

Test coverage

Added test assets for edge-case instantiation scenarios; Added test coverage for Instantiator exception classes; Added unit and performance tests for the Instantiator.

Dependencies

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

The package has been renamed from ocramius/instantiator to doctrine/instantiator, with the homepage and author links updated to reflect the Doctrine project. The minimum PHP version requirement has been raised from PHP 5.3 to PHP 8.4. Development dependencies have been significantly updated: PHPUnit is now required at version ^10.5.58, doctrine/coding-standard at ^14, phpstan at ^2.1, and phpbench at ^1.2. The autoload strategy has migrated from PSR-0 to PSR-4, changing the namespace from Instantiator\\ to Doctrine\\Instantiator\\, and a new config section allows the PHP CodeSniffer composer installer plugin.

(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 59 → 63 (+3.5)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 100 → 100 (+0.0)
  • Architecture 69 → 69 (+0.0)
  • Maturity 42 → 50 (+7.5)
  • Readiness 75 → 75 (+0.0)
  • Security 70 → 70 (+0.0)
  • Performance 100 → 100 (+0.0)

Resolved (1)

  • Off-boarding risk: anonymized user #1

New (1)

  • Off-boarding risk: anonymized user #1

Changes since last survey

  • 8 commits — 7 feature/other, 1 fixes

By area

  • (repo) — 3 commits
  • .github/workflows — 2 commits
  • src/Instantiator.php — 1 commit
  • tests/InstantiatorTest — 1 commit
  • tests/InstantiatorTestAsset — 1 commit

Notable commits

  • fix: Merge pull request #167 from greg0ire/fix-build
  • change: Add PHP 8.6 to CI (#169)
  • change: Bump the doctrine group across 1 directory with 5 updates (#166)
  • change: Merge branch '2.1.x' into 2.2.x
  • change: Merge branch '2.1.x' into 2.2.x
  • change: PHPUnit 13.4.6 (#168)
  • change: Temporarily ignore PHPStan false positive
  • change: Use ArrayObject::unserialize() instead of deprecated ArrayIterator::unserialize() (#165)

Written by cca.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 13 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 25799eb3dbae604e6a9bd3a8d6dfbc4e1f0ab1b7 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — 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.64+preprod-569132d3dfbe.