Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.
This report summarizes scanner evidence for phpdotenv/phpdotenv, a PHP project with 13,559 GitHub stars. SynthScan examined 7,103 lines of code across 64 source files, recording 96 pattern matches distributed across 1 syntactic category. The legacy adjusted pattern signal is 14.4 (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.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-11-27.
Can maintainers explain intent, assumptions, and trade-offs? 96 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 96 finding(s).
Which changes need focused human review? 96 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
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 96 distinct pattern matches across 1 syntactic category. 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/Dotenv/DotenvTest.php | 35 | public function testDotenvThrowsExceptionIfUnableToLoadFile() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 45 | public function testDotenvThrowsExceptionIfUnableToLoadFiles() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 55 | public function testDotenvThrowsExceptionWhenNoFiles() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 65 | public function testDotenvTriesPathsToLoad() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 71 | public function testDotenvTriesPathsToLoadTwice() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 80 | public function testDotenvTriesPathsToSafeLoad() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 86 | public function testDotenvSkipsLoadingIfFileIsMissing() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 92 | public function testDotenvLoadsEnvironmentVars() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 105 | public function testDotenvLoadsEnvironmentVarsMultipleWithShortCircuitMode() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 115 | public function testDotenvLoadsEnvironmentVarsMultipleWithoutShortCircuitMode() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 125 | public function testCommentedDotenvLoadsEnvironmentVars() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 182 | public function testDotenvLoadWithInvalidEncoding() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 192 | public function testDotenvLoadsMultibyteWindowsVars() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 199 | public function testMultipleDotenvLoadsEnvironmentVars() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 207 | public function testExportedDotenvLoadsEnvironmentVars() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 220 | public function testDotenvLoadsEnvGlobals() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 230 | public function testDotenvLoadsServerGlobals() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 240 | public function testDotenvNestedEnvironmentVars() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 278 | public function testDotenvImmutableLoadIgnoresPutenv() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 288 | public function testDotenvLoadAfterOverload() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 296 | public function testDotenvOverloadAfterLoad() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 304 | public function testDotenvUnsafeLoadWithNullByteValueDoesNotThrow() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 312 | public function testPutenvRepositoryIgnoresNullByteName() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 321 | public function testDotenvOverloadDoesOverwriteEnv() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 328 | public function testDotenvAllowsSpecialCharacters() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 417 | public function testDotenvParseInterpolationAfterMultibyteText() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 425 | public function testDotenvParseKeepsEscapedNestedVariableLiteral() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 433 | public function testDotenvParseIndentedComment() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 438 | public function testDotenvParseCommentContainingQuoteStart() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 446 | public function testDotenvParseMultilineContainingHash() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 454 | public function testDotenvParseMultilineClosingQuoteFollowedByComment() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 462 | public function testDotenvParseMultilineClosingQuoteFollowedByWhitespace() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 470 | public function testDotenvParseUnterminatedDoubleQuote() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 478 | public function testDotenvParseUnterminatedDoubleQuoteFollowedByLine() | CODE |
| LOW | tests/Dotenv/DotenvTest.php | 141 | public function testQuotedDotenvLoadsEnvironmentVars() | CODE |
| LOW | tests/Dotenv/DotenvTest.php | 156 | public function testLargeDotenvLoadsEnvironmentVars() | CODE |
| LOW | tests/Dotenv/DotenvTest.php | 164 | public function testDotenvLoadsMultibyteVars() | CODE |
| LOW | tests/Dotenv/DotenvTest.php | 259 | public function testDotenvNullFileArgumentUsesDefault() | CODE |
| LOW | tests/Dotenv/DotenvTest.php | 403 | public function testDotenvParseNumericNames() | CODE |
| LOW⚡ | tests/Dotenv/ValidatorTest.php | 65 | public function testDotenvAllowedValuesIfPresent() | CODE |
| LOW⚡ | tests/Dotenv/ValidatorTest.php | 75 | public function testDotenvAllowedValuesIfNotPresent() | CODE |
| LOW⚡ | tests/Dotenv/ValidatorTest.php | 82 | public function testDotenvProhibitedValues() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 45 | public function testDotenvRequiredStringEnvironmentVars() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 93 | public function testDotenvProhibitedValuesIfPresent() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 104 | public function testDotenvRequiredThrowsRuntimeException() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 122 | public function testDotenvRequiredArrayEnvironmentVars() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 173 | public function testDotenvEmptyThrowsRuntimeException() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 187 | public function testDotenvEmptyWhenNotPresent() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 194 | public function testDotenvStringOfSpacesConsideredEmpty() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 210 | public static function validBooleanValuesDataProvider() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 254 | public function testCanValidateBooleansIfPresent(string $boolean) | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 266 | public static function invalidBooleanValuesDataProvider() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 284 | public function testCanInvalidateNonBooleans(string $boolean) | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 298 | public function testCanInvalidateNonBooleansIfPresent(string $boolean) | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 309 | public function testCanInvalidateBooleanNonExist() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 323 | public function testIfPresentBooleanNonExist() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 335 | public static function validIntegerValuesDataProvider() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 361 | public function testCanValidateIntegersIfPresent(string $integer) | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 373 | public static function invalidIntegerValuesDataProvider() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 392 | public function testCanInvalidateNonIntegers(string $integer) | CODE |
| 36 more matches not shown… | ||||