symfony/security-csrf

Symfony Security Component - CSRF Library

PHP

1,762

505 commits

updated Aug 3, 2026

See the code

README

Security Component - CSRF

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

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

component
php
symfony
symfony-component

symfony/security-csrf

Symfony Security Component - CSRF Library

PHP

1,762

505 commits

updated Aug 3, 2026

See the code

README

Security Component - CSRF

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

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

component
php
symfony
symfony-component

Project health

Overall

3.0/10

Maintained

0/10

Code review

0/10
OpenSSF Scorecard

Significant stargazers

Javier Eguiluz

1,668 followers · starred Nov 2017

Derick Rethans

1,840 followers · starred Feb 2021

Mark Young

8 followers · starred Dec 2018

Bruno Baguette

4 followers · starred Apr 2025