Skip to content
CAI
Software that uses CAICheck a score

sebastianbergmann/code-unit

55.0

Adequate · 17 November 2026

1.4k

lines of production code

PHP

primary language

1

measurement over time

CAI band scale
CAI lens gauges

What this system is

Behavioural changes

1 commit (0 fixes) modifying (repo-wide)

A change to existing behaviour in (repo-wide) — 1 commit, 124 files: “\* Install PHPStan using Composer in order to be able to use phpstan/phpstan-strict-rules and tomasvotruba/type-coverage \* Configure phpstan/phpstan-strict-rules, tomasvotruba/type-coverage, and ergebnis/phpstan-rules \* Update PHPStan configuration \* Put Phive binary under version control and manage it through "ant update-tools"”.

(repo-wide) · medium confidence · unverified

1 commit (0 fixes) modifying build

A change to existing behaviour in build — 1 commit, 1 file: “Create release when tag is pushed”.

build · medium confidence · unverified

2 commits (0 fixes) modifying src/exceptions

A change to existing behaviour in src/exceptions — 2 commits, 4 files: “Initial work on CodeUnit objects”; “Extend Throwable”.

src/exceptions · medium confidence · unverified

201 commits (7 fixes) modifying tools

A change to existing behaviour in tools — 201 commits (7 fixs), 48 files: “Update tools”; “Try with Composer 2.7.8”; “Revert "Try with Composer 2.7.5"”; and 20 more.

tools · medium confidence · unverified

61 commits (13 fixes) modifying src

A change to existing behaviour in src — 61 commits (13 fixs), 12 files: “Refactor”; “Fix”; “Document collected/iterated type using Psalm template”; and 50 more (refs \#8, \#9, \#2, \#3).

src · medium confidence · unverified

91 commits (5 fixes) modifying (repo-wide)

A change to existing behaviour in (repo-wide) — 91 commits (5 fixs), 13 files: “Prepare release”; “Update gitattributes to export-ignore .psalm directory”; “Drop support for PHP 7.4”; and 58 more (refs \#8, \#9, \#2, \#3).

(repo-wide) · low confidence · unverified

Test coverage

17 commits adding/updating tests in tests/\_fixture; 51 commits adding/updating tests in tests/unit.

Dependencies

24 commits updating dependencies (9 manifests)

A dependency / build maintenance change in (dependencies) — 24 commits (2 fixs), 9 files: “Drop support for PHP 7.4”; “Bump”; “Reapply "Bump"”; and 16 more (refs \#9).

(dependencies) · high confidence · unverified

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

Baseline

  • First survey — no prior run to compare against. CAI 55.0.

Lenses

  • Code Health 97.4
  • Architecture 69.0
  • Maturity 38.6
  • Readiness 71.9
  • Security 64.9

Changes since last survey

  • 300 commits — 274 feature/other, 26 fixes

By area

  • .phive/phars.xml — 145 commits
  • (root) — 63 commits
  • .github/workflows — 36 commits
  • (repo) — 12 commits
  • tests/unit — 12 commits
  • src/CodeUnit.php — 8 commits
  • src/Mapper.php — 7 commits
  • .psalm/baseline.xml — 4 commits
  • tests/_fixture — 3 commits
  • .github/FUNDING.yml — 2 commits
  • .psalm/config.xml — 2 commits
  • src/ClassMethodUnit.php — 2 commits
  • src/CodeUnitCollection.php — 2 commits
  • .github/CODE_OF_CONDUCT.md — 1 commit
  • tools/.phpstan — 1 commit

Notable commits

  • fix: Fix
  • fix: Fix CS/WS issue
  • fix: Fix CS/WS issues
  • fix: Fix CS/WS issues
  • fix: Fix CS/WS issues
  • fix: Fix CS/WS issues
  • fix: Fix TestDox output
  • fix: Fix copy/paste mistake
  • fix: Fix issues identified by PHPStan
  • fix: Fix type annotations
  • fix: Fix/Tweak
  • fix: Revert "Bump"
  • fix: Revert "Check out all history for all branches and tags"
  • fix: Revert "Reapply "Bump""
  • fix: Revert "Reapply "Update PHPUnit configuration""
  • fix: Revert "Try setting COMPOSER_ROOT_VERSION to tag"
  • fix: Revert "Try with Composer 2.7.2"
  • fix: Revert "Try with Composer 2.7.3"
  • fix: Revert "Try with Composer 2.7.4"
  • fix: Revert "Try with Composer 2.7.5"
  • …and 280 more

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

Survey your own repository

sebastianbergmann/code-unit 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 17 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 23caa57776ddcaa35a2965b93d5f4212a2c3a2d9 — 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.84+preprod-d645ca9bbedd.