Skip to content
CAI
Software that uses CAICheck a score

composer/composer

66.9

Adequate · 10 November 2026

68.3k

lines of production code

PHP

primary language

8

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

How this codebase got here

Score

  • CAI 68 → 67 (-1.6)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 67 → 67 (-0.0)
  • Architecture 82 → 92 (+9.9)
  • Maturity 64 → 59 (-4.1)
  • Readiness 72 → 72 (+0.0)
  • Security 91 → 86 (-4.6)

Resolved (11)

  • ArrayLoader.configureCachedLinks (cognitive 20) (src/Composer/Package/Loader/ArrayLoader.php)
  • AuthHelper.addAuthenticationOptions (cognitive 39) (src/Composer/Util/AuthHelper.php)
  • AuthHelper.addAuthenticationOptions (cyclomatic 27) (src/Composer/Util/AuthHelper.php)
  • FilesystemRepository.dumpToPhpCode (cognitive 19) (src/Composer/Repository/FilesystemRepository.php)
  • JsonConfigSource.manipulateJson (cognitive 48) (src/Composer/Config/JsonConfigSource.php)
  • JsonConfigSource.manipulateJson (cyclomatic 28) (src/Composer/Config/JsonConfigSource.php)
  • Members sharing a duplicated core (5 members, 50+ identical tokens) (src/Composer/Json/JsonManipulator.php)
  • Off-boarding risk: anonymized user #1
  • Off-boarding risk: anonymized user #2
  • Outdated: composer/semver
  • Projects may be oversized for their cohesion

New (27)

  • Change coupling: FossilDownloader.php ↔ FossilDriver.php (src/Composer/Downloader/FossilDownloader.php)
  • Duplicated block (6 lines × 2) (src/Composer/Config/JsonConfigSource.php)
  • FileTooLong: Console/Application.php (src/Composer/Console/Application.php)
  • FilesystemRepository.appendPhpCode (cognitive 19) (src/Composer/Repository/FilesystemRepository.php)
  • GitDriver.initialize (cognitive 17) (src/Composer/Repository/Vcs/GitDriver.php)
  • Hotspot: src/Composer/Console/Application.php (src/Composer/Console/Application.php)
  • Hotspot: src/Composer/Downloader/FileDownloader.php (src/Composer/Downloader/FileDownloader.php)
  • Hotspot: src/Composer/EventDispatcher/EventDispatcher.php (src/Composer/EventDispatcher/EventDispatcher.php)
  • Hotspot: src/Composer/Factory.php (src/Composer/Factory.php)
  • Hotspot: src/Composer/Json/JsonManipulator.php (src/Composer/Json/JsonManipulator.php)
  • JsonConfigSource.restoreEmptyObjects (cognitive 24) (src/Composer/Config/JsonConfigSource.php)
  • JsonConfigSource.restoreEmptyObjects (cyclomatic 17) (src/Composer/Config/JsonConfigSource.php)
  • JsonManipulator.format (cognitive 16) (src/Composer/Json/JsonManipulator.php)
  • Members sharing a duplicated core (5 members, 50+ identical tokens) (src/Composer/Json/JsonManipulator.php)
  • MethodTooLong: Factory.createComposer (src/Composer/Factory.php)
  • No assertions: testIsDrvfsMount (tests/Composer/Test/Util/PlatformTest.php)
  • Off-boarding risk: anonymized user #3
  • Off-boarding risk: anonymized user #2
  • Off-boarding risk: anonymized user #1
  • RepositoryManager.findHttpHeaders (cognitive 18) (src/Composer/Repository/RepositoryManager.php)
  • …and 7 more

Changes since last survey

  • 74 commits — 67 feature/other, 7 fixes

By area

  • src/Composer — 49 commits
  • tests/Composer — 9 commits
  • (root) — 8 commits
  • .github/workflows — 4 commits
  • doc/03-cli.md — 2 commits
  • doc/05-repositories.md — 1 commit
  • phpstan/baseline.neon — 1 commit

Notable commits

  • fix: Fix composer config corrupting composer.json when extra/scripts is a JSON array (#13167)
  • fix: Fix phpstan errors
  • fix: Fix svn password redaction in debug output (#13171)
  • fix: Fix undefined array key warning on curl errors for unparseable URLs with curl 8.23+ (#13252)
  • fix: GitHub.php: Minor fixes to text spacing (#13156)
  • fix: Revert back to HTTP Basic Auth for GitLab Package registry (#13180)
  • fix: Update ca-bundle to fix a php 8.6 deprecation
  • change: Add a way to disable git fallback in GitLab, Bitbucket and Forgejo drivers (#13234)
  • change: Add exclude-branches option to VCS repositories (#13235)
  • change: Avoid callback overhead when propagating rule watches (#13187)
  • change: Avoid copying packages when selecting the most current version (#13217)
  • change: Avoid intermediate file strings when formatting changes (#13196)
  • change: Avoid reseeking watch chains after removing non-head nodes (#13188)
  • change: Avoid waiting for a full 300s when a server does not respond (#13243)
  • change: Bump zizmorcore/zizmor-action from 0.6.4 to 0.7.1 (#13157)
  • change: Bump zizmorcore/zizmor-action from 0.7.1 to 0.8.0 (#13237)
  • change: Check blocked IPs before sending and stop rejected in-flight transfers in CurlDownloader (#13255)
  • change: Collect certificate DNS names in one pass (#13195)
  • change: Drop credential headers when following a redirect to another origin (#13253)
  • change: Drop six assertions that cannot run after the expected exception (#13223)
  • …and 54 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

composer/composer 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 10 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 d9d851d93b71ba914200ccfdda2d03fc0f2c51aa — 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.9+preprod-cba156920af5.