symfony/security-csrf

Symfony Security Component - CSRF Library

Maintainers

Package info

github.com/symfony/security-csrf

Homepage

pkg:composer/symfony/security-csrf

Statistics

Installs: 185 741 056

Dependents: 325

Suggesters: 12

Stars: 1 774

v8.1.0 2026-05-29 05:06 UTC

This package is auto-updated.

Last update: 2026-06-05 06:51:30 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.1 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