All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.1 (2026-04-10)
- deps-dev: Bump league/commonmark from 2.8.0 to 2.8.2 (#10) (49e6de6)
- deps-dev: Bump the dev-dependencies group across 1 directory with 7 updates (#11) (4b1cb6d)
- deps: Bump actions/upload-artifact from 6 to 7 (#6) (c33a822)
- deps: Bump codecov/codecov-action from 5 to 6 (#12) (7afe7b8)
1.0.0 - 2026-02-12
CspDirectives- Immutable CSP configuration with fluent APIHeaderBuilder- CSP header generation with Report-Only supportNonceGenerator- Cryptographically secure nonce generation (256-bit)NonceRegistry- Static singleton for simple nonce access- Security policies:
STRICT,LENIENT,UNSAFE_EVAL,UNSAFE_INLINE - WebSocket support with secure defaults (
wss://,https://) - Violation reporting (
report-uri,report-to)
SecurityHeaders- Immutable aggregate of all security headersSecurityHeadersBuilder- Header array generation- HSTS with preload support
- COOP, COEP, CORP headers
- Permissions-Policy with feature directives
- X-Frame-Options, X-Content-Type-Options, Referrer-Policy
CsrfProtection- Token-based CSRF protection- Synchronizer Token pattern
- Double Submit Cookie pattern
- Configurable token storage (Session, Cookie)
SecureCookie- Secure cookie handlingCookieBuilder- Fluent cookie construction- SameSite, HttpOnly, Secure flags
- Optional encryption support
DefaultPasswordHasher- Argon2id/bcrypt hashing with pepper supportPasswordPolicy- Configurable password validation rulesPwnedPasswordChecker- HIBP breach detection via k-Anonymity API- Secure memory clearing via
sodium_memzero()
HtmlSanitizer- XSS-safe HTML sanitizationUriSanitizer- URI validation with SSRF protectionPathValidator- Directory traversal preventionSqlIdentifierSanitizer- SQL injection prevention for identifiers- IDN homograph attack detection
DefaultRateLimiter- Configurable rate limiting- Token Bucket algorithm
- Sliding Window algorithm
- Storage backends: InMemory, Redis, Memcached
SriHashGenerator- Subresource Integrity hash generationIntegrityAttribute- SRI attribute building- SSRF protection for remote resources
- Multiple hash algorithm support (SHA-256, SHA-384, SHA-512)
SecurityAuditLogger- Security event loggingSecurityEvent- Structured security eventsSecurityEventType- Event type enumeration- Correlation ID support
- PSR-3 compatible
- Defense-in-Depth: Redundant validation at multiple layers
- Cryptographic randomness only (
random_bytes()) - Input validation rejects
;,\n,\r,'(injection prevention) - Memory clearing for sensitive data
- Private IP range blocking (SSRF protection)
- Taint analysis enabled (Psalm)
- PHPStan Level 8
- Psalm Level 1 with taint analysis
- 100% Mutation Score (Infection)
- Deptrac architecture enforcement (0 violations)
- PHP 8.4+ with strict types
- Immutable value objects throughout