Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.
This report summarizes scanner evidence for vlucas/phpdotenv, a PHP project with 13,549 GitHub stars. SynthScan examined 6,888 lines of code across 64 source files, recording 90 pattern matches distributed across 1 syntactic category. The legacy adjusted pattern signal is 14.1 (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? 90 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 90 finding(s).
Which changes need focused human review? 90 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 90 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 | 34 | public function testDotenvThrowsExceptionIfUnableToLoadFile() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 44 | public function testDotenvThrowsExceptionIfUnableToLoadFiles() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 54 | public function testDotenvThrowsExceptionWhenNoFiles() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 64 | public function testDotenvTriesPathsToLoad() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 70 | public function testDotenvTriesPathsToLoadTwice() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 79 | public function testDotenvTriesPathsToSafeLoad() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 85 | public function testDotenvSkipsLoadingIfFileIsMissing() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 91 | public function testDotenvLoadsEnvironmentVars() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 104 | public function testDotenvLoadsEnvironmentVarsMultipleWithShortCircuitMode() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 114 | public function testDotenvLoadsEnvironmentVarsMultipleWithoutShortCircuitMode() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 124 | public function testCommentedDotenvLoadsEnvironmentVars() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 181 | public function testDotenvLoadWithInvalidEncoding() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 191 | public function testDotenvLoadsMultibyteWindowsVars() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 198 | public function testMultipleDotenvLoadsEnvironmentVars() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 206 | public function testExportedDotenvLoadsEnvironmentVars() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 219 | public function testDotenvLoadsEnvGlobals() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 229 | public function testDotenvLoadsServerGlobals() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 239 | public function testDotenvNestedEnvironmentVars() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 277 | public function testDotenvImmutableLoadIgnoresPutenv() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 287 | public function testDotenvLoadAfterOverload() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 295 | public function testDotenvOverloadAfterLoad() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 303 | public function testDotenvUnsafeLoadWithNullByteValueDoesNotThrow() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 311 | public function testPutenvRepositoryIgnoresNullByteName() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 320 | public function testDotenvOverloadDoesOverwriteEnv() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 327 | public function testDotenvAllowsSpecialCharacters() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 416 | public function testDotenvParseInterpolationAfterMultibyteText() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 424 | public function testDotenvParseKeepsEscapedNestedVariableLiteral() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 432 | public function testDotenvParseIndentedComment() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 437 | public function testDotenvParseCommentContainingQuoteStart() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 445 | public function testDotenvParseMultilineContainingHash() | CODE |
| LOW | tests/Dotenv/DotenvTest.php | 140 | public function testQuotedDotenvLoadsEnvironmentVars() | CODE |
| LOW | tests/Dotenv/DotenvTest.php | 155 | public function testLargeDotenvLoadsEnvironmentVars() | CODE |
| LOW | tests/Dotenv/DotenvTest.php | 163 | public function testDotenvLoadsMultibyteVars() | CODE |
| LOW | tests/Dotenv/DotenvTest.php | 258 | public function testDotenvNullFileArgumentUsesDefault() | CODE |
| LOW | tests/Dotenv/DotenvTest.php | 402 | 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 |
| LOW | tests/Dotenv/ValidatorTest.php | 406 | public function testCanInvalidateNonIntegersIfExist(string $integer) | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 417 | public function testCanInvalidateIntegerNonExist() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 431 | public function testIfPresentIntegerNonExist() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 459 | public function testDotenvRegexMatchError() | CODE |
| 30 more matches not shown… | ||||