hydrakit / csrf
Synchronizer-token CSRF protection as PSR-15 middleware.
v0.3.2
2026-09-11 16:10 UTC
Requires
- php: >=8.2
- hydrakit/core: ^0.3
- hydrakit/http: ^0.3
- hydrakit/session: ^0.3
- psr/http-message: ^2.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
Requires (Dev)
- nyholm/psr7: ^1.8
- phpunit/phpunit: ^11.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Read-only mirror.
hydrakit/csrfis developed in hydra-foundation/hydra underpackages/csrf, and republished here on every push. A commit pushed to this repository is overwritten by the next one; issues are disabled for that reason, and a pull request opened here cannot be merged. Both belong upstream.
Synchronizer-token CSRF protection: one secret token per session, compared in
constant time against whatever an unsafe request submits. State lives entirely
in the session, so the guard is stateless and the package ships no
ServiceProvider. The guard autowires from the session and Signer bindings.