symfony/security-csrf
Symfony Security Component - CSRF Library observed · 2026-08-28
Health v2 · maintenance only
93/100
- Activity 95
- Release rhythm 86
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 18.5
- age_days: 4675
- days_rel: 96
- days_push: 30
- n_releases_24m: 23
Adoption not part of the score
1761 stars · 8 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
The Symfony Security CSRF component provides a CsrfTokenManager class for generating and validating cross-site request forgery (CSRF) tokens in PHP applications. It is part of the Symfony framework's security ecosystem but can be used standalone.
Use cases
- protect forms from CSRF attacks
- generate and validate CSRF tokens in PHP
- secure state-changing POST requests
- add CSRF protection to a non-Symfony PHP project
- validate tokens for AJAX form submissions
When to choose
- you need CSRF token generation and validation in any PHP application
- you are building a Symfony app and need form security
- you want a small, well-maintained, MIT-licensed security component
When to avoid
- you need full authentication or authorization, not just CSRF protection
- your framework already bundles CSRF protection
- you are not working in PHP
Facets
library · maturity stable
security middleware security web-development backend php csrf symfony-component token-generation token-validation form-protection
5 sources
- readme: https://github.com/symfony/security-csrf · fetched 2026-08-28 · 99929a15de54
- homepage: https://symfony.com/security · fetched 2026-08-29 · b8a4472dada7
- site_page: https://symfony.com/doc · fetched 2026-08-29 · 44889134f4fb
- site_page: https://symfony.com/releases · fetched 2026-08-29 · 5bd749e2b676
- site_page: https://symfony.com/blog/category/releases · fetched 2026-08-29 · 0739a28df2e8
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| symfony/security-csrf | main | 93 |
For agents
markdown · JSON · MCP: product_card(name="symfony/security-csrf")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem