From 5aef9707d2ea75e7d30e463fc4334e3becb8dc94 Mon Sep 17 00:00:00 2001 From: Bluscream Date: Tue, 6 Oct 2026 17:40:23 +0200 Subject: [PATCH] feat(php): add a PHP skill, grounded in the synchra-php SDK and the bleichi site MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PHP was the one language with real code in two shapes here and no skill: a Composer library held at PHPStan level max, and a plain PHP-FPM application behind nginx with no framework. The rules come from reading both rather than from general PHP advice, so each one names the failure it prevents. The two halves differ enough to be separate sections. A library requires PSR interfaces and ships no implementation; an application's rules are about escaping, keeping the document root unwritable, atomic writes and sessions. Everything in §1-§8 applies to both. Three findings are worth the space they take because they were each paid for once already: `json_encode` with JSON_UNESCAPED_SLASHES into an inline ` or `