php-templating
Pass
Audited by Gen Agent Trust Hub on Sep 19, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill advocates for the use of explicit HTML escaping using
htmlspecialcharswithENT_QUOTES | ENT_SUBSTITUTEfor all dynamic output, which is a standard security best practice for preventing XSS. - [SAFE]: The guidance encourages the use of typed ViewModels (
final readonly class), which helps minimize security risks associated with passing loose, untrusted associative arrays through different layers of an application. - [SAFE]: The skill warns against using raw PHP
includecalls, recommending the use of template engine abstractions (fetch) which provides better control over the rendering context. - [SAFE]: Localization and email rendering patterns use closed enums and application-controlled identifiers for template selection, preventing path traversal or file inclusion vulnerabilities from user-controlled strings.
Audit Metadata