Ross ROSS = Recommend OSS · open-source software intelligence for agents

symfony/security-csrf

Symfony Security Component - CSRF Library observed · 2026-08-28

github.com/symfony/security-csrf · homepage · PHP · MIT (permissive) 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

Full methodology

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

Member repositories

RepositoryRoleHealth v2
symfony/security-csrfmain93

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