📦 一个 PHP 微信 SDK
This report summarizes scanner evidence for w7corp/easywechat, a PHP project with 10,367 GitHub stars. SynthScan examined 53,807 lines of code across 528 source files, recording 48 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 0.9 (Low 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-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 48 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 25 finding(s).
Which changes need focused human review? 48 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 48 distinct pattern matches across 2 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/TestCase.php | 26 | public function createEncryptedXmlMessageRequest($plainMessageXml, Encryptor $encryptor, array $query = []): ServerR | CODE |
| LOW | tests/TestCase.php | 43 | public function createPlainXmlMessageRequest(string $plainMessageXml, string $token, array $query = []): ServerReque | CODE |
| LOW | tests/TestCase.php | 53 | public function createPlainSignatureQuery(string $token, array $query = []): array | CODE |
| LOW | docs/src/5.x/wework/group-welcome-template.md | 194 | function createWelcomeTemplatesByType($groupWelcomeTemplate) { | CODE |
| LOW | src/OfficialAccount/Application.php | 251 | protected function getHttpClientDefaultOptions(): array | CODE |
| LOW | src/OpenWork/Application.php | 309 | protected function getHttpClientDefaultOptions(): array | CODE |
| LOW | src/OpenWork/Server.php | 74 | public function withDefaultSuiteTicketHandler(callable $handler): void | CODE |
| LOW | src/OpenWork/Server.php | 80 | public function handleSuiteTicketRefreshed(callable $handler): static | CODE |
| LOW | src/OpenWork/JsApiTicket.php | 91 | public function createAgentConfigSignature(int $agentId, string $nonce, int $timestamp, string $url, array $jsApiLis | CODE |
| LOW | src/OpenPlatform/Application.php | 228 | public function createPreAuthorizationCode(): array | CODE |
| LOW | src/OpenPlatform/Application.php | 250 | public function createPreAuthorizationUrl(string $callbackUrl, array|string $optional = []): string | CODE |
| LOW | src/OpenPlatform/Application.php | 283 | public function getOfficialAccountWithRefreshToken( | CODE |
| LOW | src/OpenPlatform/Application.php | 295 | public function getOfficialAccountWithAccessToken( | CODE |
| LOW | src/OpenPlatform/Application.php | 329 | public function getMiniAppWithRefreshToken( | CODE |
| LOW | src/OpenPlatform/Application.php | 341 | public function getMiniAppWithAccessToken( | CODE |
| LOW | src/OpenPlatform/Application.php | 370 | protected function createAuthorizerOAuthFactory(string $authorizerAppId, OfficialAccountConfig $config): Closure | CODE |
| LOW | src/OpenPlatform/Application.php | 415 | protected function getHttpClientDefaultOptions(): array | CODE |
| LOW | src/OpenPlatform/Server.php | 96 | public function withDefaultVerifyTicketHandler(callable $handler): void | CODE |
| LOW | src/OpenPlatform/Server.php | 102 | public function handleVerifyTicketRefreshed(callable $handler): static | CODE |
| LOW | src/Work/Application.php | 183 | protected function getHttpClientDefaultOptions(): array | CODE |
| LOW | src/Work/JsApiTicket.php | 107 | public function createAgentConfigSignature(int $agentId, string $url, string $nonce, int $timestamp): array | CODE |
| LOW | src/MiniApp/Application.php | 189 | protected function getHttpClientDefaultOptions(): array | CODE |
| LOW | src/Kernel/HttpClient/RequestUtil.php | 157 | public static function createDefaultServerRequest(): ServerRequestInterface | CODE |
| LOW | src/Kernel/Traits/InteractWithHttpClient.php | 61 | protected function getHttpClientDefaultOptions(): array | CODE |
| LOW | src/Kernel/Traits/InteractWithServerRequest.php | 33 | public function setRequestFromSymfonyRequest(Request $symfonyRequest): static | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/src/3.x/user-tag.md | 101 | // $nextOpenId:第一个拉取的OPENID,不填默认从头开始拉取 | COMMENT |
| LOW | docs/src/4.x/payment/order.md | 21 | COMMENT | |
| LOW | docs/src/4.x/payment/order.md | 61 | ], $isContract); | COMMENT |
| LOW | docs/src/4.x/official-account/user-tag.md | 61 | ## 获取指定 openid 用户所属的标签 | COMMENT |
| LOW | docs/src/4.x/official-account/poi.md | 81 | // "business_name": "麦当劳", | COMMENT |
| LOW | docs/src/4.x/official-account/goods.md | 101 | // "statuses": [ | COMMENT |
| LOW | docs/src/5.x/payment/order.md | 21 | COMMENT | |
| LOW | docs/src/5.x/payment/order.md | 61 | // "return_code": "SUCCESS", | COMMENT |
| LOW | docs/src/5.x/official-account/user-tag.md | 61 | ## 获取指定 openid 用户所属的标签 | COMMENT |
| LOW | docs/src/5.x/official-account/poi.md | 81 | // "business_name": "麦当劳", | COMMENT |
| LOW | docs/src/5.x/official-account/goods.md | 101 | // "statuses": [ | COMMENT |
| LOW | docs/src/6.x/mini-app/utils.md | 21 | // "errmsg": "ok" | COMMENT |
| LOW | docs/src/6.x/mini-app/utils.md | 61 | // "purePhoneNumber": "13800138000", | COMMENT |
| LOW | docs/src/6.x/mini-app/config.md | 41 | */ | COMMENT |
| LOW | docs/src/6.x/mini-app/index.md | 21 | 'throw' => true, // 状态码非 200、300 时是否抛出异常,默认为开启 | COMMENT |
| LOW | docs/src/6.x/open-work/index.md | 21 | 'http' => [ | COMMENT |
| LOW | docs/src/6.x/open-work/index.md | 161 | // "corpid": "xxxx", | COMMENT |
| LOW | docs/src/6.x/open-work/index.md | 181 | // "agentid":1, | COMMENT |
| LOW | docs/src/6.x/open-work/index.md | 201 | // }, | COMMENT |
| LOW | docs/src/6.x/open-platform/index.md | 21 | * https://github.com/symfony/symfony/blob/5.3/src/Symfony/Contracts/HttpClient/HttpClientInterface.php | COMMENT |
| LOW | docs/src/6.x/open-platform/index.md | 141 | COMMENT | |
| LOW | docs/src/6.x/work/index.md | 21 | * 接口请求相关配置,超时时间等,具体可用参数请参考: | COMMENT |
| LOW | docs/src/6.x/official-account/config.md | 61 | // // 最大重试次数 | COMMENT |