# symfony/security

Provides a complete security system for your web application

Repository: https://github.com/symfony/security
Canonical: https://ross.abutalabs.com/products/symfony-security
Homepage: https://symfony.com/security
Language: PHP
License: MIT
License Family: permissive
Topics: php, symfony, component, symfony-component
Archived: true
Last push: 2024-04-27T09:08:06+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5671, "days_push": 858, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1196, forks 54 (observed 2026-08-28T04:03:56.930598+00:00)

## What it is
The Symfony Security Component provides a complete authentication and authorization system for PHP web applications. It supports HTTP basic auth, interactive form login, X.509 certificate login, custom authentication strategies, and role-based authorization.

## Use cases
- add login and authentication to a php web app
- implement role-based access control in symfony
- secure endpoints with http basic auth
- build custom authentication strategies in php
- manage user roles and permissions
- add csrf protection to login forms

## When to choose
- you are building a Symfony application and need authentication/authorization
- you want a mature, well-documented PHP security system with flexible authenticators
- you need role- or voter-based authorization integrated with your framework

## When to avoid
- you use a different framework with its own auth stack (e.g., Laravel's built-in auth)
- you need a standalone identity provider or SSO server rather than an in-app security layer
- you want a zero-config auth solution without framework integration

## Facets
- artifact type: library
- maturity: stable
- function: auth, authorization, security, middleware
- domain: security, web-development, backend, developer-tools
- platform: php, self-hosted
- tags: symfony, authentication, roles, firewalls, voters, csrf, http-basic-auth, form-login, symfony-component, web-server

## Member repositories
- symfony/security (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:56.930598+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:22:04.489003+00:00, confidence not recorded.
  - readme: https://github.com/symfony/security (fetched 2026-08-28T04:03:56.930598+00:00, sha a1150eb2b06d)
  - homepage: https://symfony.com/security (fetched 2026-08-29T12:29:00.813322+00:00, sha 5f58bb7e01df)
  - site_page: https://symfony.com/doc (fetched 2026-08-29T12:29:00.815826+00:00, sha 44889134f4fb)
  - site_page: https://symfony.com/releases (fetched 2026-08-29T12:29:00.817832+00:00, sha 429432437be6)
  - site_page: https://symfony.com/blog/category/releases (fetched 2026-08-29T12:29:00.819674+00:00, sha fb7283c57915)
- Data as of 2026-08-30T08:39:29.467469+00:00.
