symfony/security-csrf

Symfony Security Component - CSRF Library

Maintainers

👁 fabpot

Package info

github.com/symfony/security-csrf

Homepage

pkg:composer/symfony/security-csrf

Statistics

Installs: 186 405 559

Dependents: 327

Suggesters: 13

Stars: 1 774

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

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT c865a8ee0d30b14545d7e5349b8e443f4fa9dc3f

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