Removing matomo/device-detector also dropped mustangostang/spyc, which
Compose.php uses directly as a yaml_parse fallback via Spyc::YAMLLoadString.
Declare it as a direct dependency instead of relying on the transitive pull.
Switch the new DetectorTest assertions to assertSame to satisfy the
refactor:check Rector rule.
Rewrites Appwrite\Detector\Detector to wrap utopia-php/user-agent instead
of matomo/device-detector. The public shape (getOS/getClient/getDevice/
skipBotDetection) is unchanged, so the four call sites are untouched. The
AppwriteCLI short-circuit and the ''-vs-null defaults (os/client default to
'', device fields to null) are preserved.
matomo/device-detector is removed from composer — it was used only through
this wrapper, and isBot() was never called anywhere. utopia-php/user-agent
requires PHP >=8.4, already satisfied by the >=8.5 floor on main.
utopia 0.1.1 keeps Matomo-aligned short codes, so parsing is byte-identical
for the tested user agents (Firefox 47 unit test; Chrome 70 and Chrome
Mobile e2e session and webhook assertions). Expands DetectorTest with the
AppwriteCLI branch, a mobile client, and the unknown-user-agent defaults.