Dependency Manager for PHP
This report summarizes scanner evidence for composer/composer, a PHP project with 29,548 GitHub stars. SynthScan examined 159,619 lines of code across 757 source files, recording 1243 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 7.8 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1228 finding(s).
Are imports declared and package/API names verified? 15 finding(s).
Are wrappers, guards, and repeated structures necessary? 1225 finding(s).
Which changes need focused human review? 1243 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1243 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/Composer/Test/CacheTest.php | 85 | public function testRemoveFilesWhenCacheIsTooLarge(): void | CODE |
| LOW | tests/Composer/Test/InstalledVersionsTest.php | 197 | public function testGetVersionOutOfBounds(): void | CODE |
| LOW | tests/Composer/Test/InstalledVersionsTest.php | 250 | public function testGetInstalledPackagesByType(): void | CODE |
| LOW | tests/Composer/Test/InstalledVersionsTest.php | 270 | public function testWithClassLoaderLoaded(): void | CODE |
| LOW⚡ | tests/Composer/Test/ComposerTest.php | 37 | public function testSetGetRepositoryManager(): void | CODE |
| LOW⚡ | tests/Composer/Test/ComposerTest.php | 46 | public function testSetGetDownloadManager(): void | CODE |
| LOW⚡ | tests/Composer/Test/ComposerTest.php | 56 | public function testSetGetInstallationManager(): void | CODE |
| LOW | tests/Composer/Test/InstallerTest.php | 250 | public function testIntegrationWithPoolOptimizer(string $file, string $message, ?string $condition, array $composerC | CODE |
| LOW | tests/Composer/Test/InstallerTest.php | 266 | public function testIntegrationWithRawPool(string $file, string $message, ?string $condition, array $composerConfig, | CODE |
| LOW | tests/Composer/Test/InstallerTest.php | 491 | public static function provideSlowIntegrationTests(): array | CODE |
| LOW | tests/Composer/Test/FactoryTest.php | 29 | public function testDefaultValuesAreAsExpected(): void | CODE |
| LOW | tests/Composer/Test/FactoryTest.php | 53 | public function testGetComposerJsonPathFailsIfDir(): void | CODE |
| LOW | tests/Composer/Test/FactoryTest.php | 61 | public function testGetComposerJsonPathFromEnv(): void | CODE |
| LOW | tests/Composer/Test/TestCase.php | 348 | protected static function ensureDirectoryExistsAndClear(string $directory): void | CODE |
| LOW | tests/Composer/Test/DefaultConfigTest.php | 22 | public function testDefaultValuesAreAsExpected(): void | CODE |
| LOW⚡ | tests/Composer/Test/ConfigTest.php | 646 | public function testOverridesGlobalBooleanPluginsConfig(): void | CODE |
| LOW⚡ | tests/Composer/Test/ConfigTest.php | 656 | public function testAllowsAllPluginsFromLocalBoolean(): void | CODE |
| LOW⚡ | tests/Composer/Test/ConfigTest.php | 666 | public function testStrictPsrAutoloaderDefaultsToFalse(): void | CODE |
| LOW⚡ | tests/Composer/Test/ConfigTest.php | 672 | public function testStrictPsrAutoloaderCanBeDisabled(): void | CODE |
| LOW⚡ | tests/Composer/Test/ConfigTest.php | 679 | public function testStrictPsrAutoloaderCanBeSetFromString(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 28 | public function testAddPackagistRepository(array $expected, array $localConfig, ?array $systemConfig = null): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 39 | public static function dataAddPackagistRepository(): array | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 146 | public function testPreferredInstallAsString(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 155 | public function testMergePreferredInstall(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 213 | public function testFetchingRelativePaths(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 227 | public function testOverrideGithubProtocols(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 236 | public function testGitDisabledByDefaultInGithubProtocols(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 259 | public function testProhibitedUrlsThrowException(string $url): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 310 | public function testProhibitedUrlsWarningVerifyPeer(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 328 | public function testDisableTlsCanBeOverridden(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 377 | public function testGetSourceOfValueEnvVariables(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 484 | public function testPolicyListBoolTrueAndEmptyObjectAreEquivalentInLayering(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 497 | public function testPolicyListFalseOverridesPriorTrueOrEmptyEquallyAcrossLayers(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 514 | public function testPolicyMasterTrueAfterDetailedConfigDoesNotEraseDetail(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 530 | public function testPolicyDeepMergesIgnoreAcrossSources(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 568 | public function testPolicyDeepMergesIgnoreForMalwareAndAbandonedAndCustomList(): void | CODE |
| LOW | tests/Composer/Test/ConfigTest.php | 617 | public function testGetDefaultsToAnEmptyArray(): void | CODE |
| LOW | …/Composer/Test/Repository/FilesystemRepositoryTest.php | 48 | public function testCorruptedRepositoryFile(): void | CODE |
| LOW | …/Composer/Test/Repository/FilesystemRepositoryTest.php | 67 | public function testUnexistentRepositoryFile(): void | CODE |
| LOW | …/Composer/Test/Repository/FilesystemRepositoryTest.php | 127 | public function testRepositoryWritesInstalledPhp(): void | CODE |
| LOW | …/Composer/Test/Repository/FilesystemRepositoryTest.php | 201 | public function testSafelyLoadInstalledVersions(): void | CODE |
| LOW | …sts/Composer/Test/Repository/RepositoryManagerTest.php | 88 | public static function provideRepoCreationTestCases(): array | CODE |
| LOW | …sts/Composer/Test/Repository/RepositoryManagerTest.php | 111 | public function testInvalidRepoCreationThrows(string $type, array $options): void | CODE |
| LOW | …sts/Composer/Test/Repository/RepositoryManagerTest.php | 128 | public static function provideInvalidRepoCreationTestCases(): array | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 220 | public function testSearchWithSpecialChars(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 247 | public function testSearchWithAbandonedPackages(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 323 | public static function provideCanonicalizeUrlTestCases(): array | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 361 | public function testGetProviderNamesWillReturnPartialPackageNames(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 390 | public function testGetSecurityAdvisoriesAssertRepositoryHttpOptionsAreUsed(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 439 | public function testGetSecurityAdvisoriesAssertRepositoryAdvisoriesIsZeroIndexedArrayWithConsecutiveKeys(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 518 | public function testGetSecurityAdvisoriesBatchesLargeRequests(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 576 | public function testGetFilterWithMatchingLists(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 624 | public function testUserFilterDisabledFalseShortCircuitsHasFilterAndGetFilterLists(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 642 | public function testUserFilterPerListOptOut(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 685 | public function testUserFilterAcceptsTrueAsNoOp(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 729 | public function testGetFilterSkipsMetadataFetchesForPackagesNotInSummary(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 793 | public function testGetFilterSkipsSummaryListsNotInConfiguredLists(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 842 | public function testGetFilterSkipsPackagesWithNonIntersectingSummaryConstraint(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 888 | public function testGetFilterSkipsSummaryWhenMetadataAlreadyFetched(): void | CODE |
| LOW | …ts/Composer/Test/Repository/ComposerRepositoryTest.php | 1014 | public function testGetFilterUsesApiUrlInsteadOfSummary(): void | CODE |
| 1165 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/Composer/Test/ConfigTest.php | 297 | 'http://💛@example.org', | CODE |
| LOW | tests/Composer/Test/Repository/VcsRepositoryTest.php | 73 | $exec('git config user.email composertest@example.org'); | CODE |
| LOW | tests/Composer/Test/Util/SvnTest.php | 44 | ['svn://johndoe@example.org', ['--username', 'johndoe', '--password', '']], | CODE |
| LOW | tests/Composer/Test/Util/ProcessExecutorTest.php | 83 | ['echo http://foo@example.org', 'echo http://foo@example.org'], | CODE |
| LOW | tests/Composer/Test/Util/UrlTest.php | 141 | ['http://10a***:***@example.org', 'http://10a8f08e8d7b7b9:foo@example.org'], | CODE |
| LOW⚡ | tests/Composer/Test/Util/UrlTest.php | 152 | ['http://10a***@example.org', 'http://10a8f08e8d7b7b9@example.org'], | CODE |
| LOW⚡ | tests/Composer/Test/Util/UrlTest.php | 161 | ['10a***:***@example.org', '10a8f08e8d7b7b9:foo@example.org'], | CODE |
| LOW⚡ | tests/Composer/Test/Util/UrlTest.php | 168 | ['10a***@example.org', '10a8f08e8d7b7b9@example.org'], | CODE |
| LOW | tests/Composer/Test/Command/InitCommandTest.php | 175 | 'email' => 'test@example.org', | CODE |
| LOW | tests/Composer/Test/Command/InitCommandTest.php | 463 | 'authors' => [['name' => 'Mr. Test', 'email' => 'test@example.org']], | CODE |
| LOW | …oser/Test/Package/Loader/ValidatingArrayLoaderTest.php | 61 | 'email' => 'alice@example.org', | CODE |
| LOW | …oser/Test/Package/Loader/ValidatingArrayLoaderTest.php | 71 | 'email' => 'mail@example.org', | CODE |
| LOW | tests/Composer/Test/Package/Loader/ArrayLoaderTest.php | 193 | ['name' => 'Bob', 'email' => 'bob@example.org', 'homepage' => 'example.org', 'role' => 'Developer'], | CODE |
| LOW | doc/04-schema.md | 268 | "email": "support@example.org", | CODE |
| LOW | doc/articles/authentication-for-private-packages.md | 183 | "url": "https://username:password@example.org" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ts/Composer/Test/Repository/ArtifactRepositoryTest.php | 81 | foreach ($repo->getPackages() as $package) { | COMMENT |
| LOW | …ts/Composer/Test/Repository/ArtifactRepositoryTest.php | 101 | // "subdir/extra2.txt" => "Testing testing testing", | COMMENT |
| LOW | …ts/Composer/Test/Repository/ArtifactRepositoryTest.php | 121 | // | COMMENT |