symfony/security-csrf

Symfony Security Component - CSRF Library

Maintainers

Package info

github.com/symfony/security-csrf

Homepage

pkg:composer/symfony/security-csrf

Statistics

Installs: 172 548 204

Dependents: 308

Suggesters: 9

Stars: 1 776

v8.0.6 2026-02-13 09:57 UTC

This package is auto-updated.

Last update: 2026-03-02 09:39:14 UTC


README

The Security CSRF (cross-site request forgery) component provides a class CsrfTokenManager for generating and validating CSRF tokens.

Sponsor

The Security component for Symfony 8.0 is backed by SymfonyCasts.

Learn Symfony faster by watching real projects being built and actively coding along with them. SymfonyCasts bridges that learning gap, bringing you video tutorials and coding challenges. Code on!

Help Symfony by sponsoring its development!

Resources