# symfony/security-core

Symfony Security Component - Core Library

Repository: https://github.com/symfony/security-core
Canonical: https://ross.abutalabs.com/products/security-core
Homepage: https://symfony.com/security
Language: PHP
License: MIT
License Family: permissive
Topics: php, symfony, component, symfony-component
Last push: 2026-08-22T13:47:15+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 4732, "days_push": 11, "days_rel": 11, "gap_med": 0.0, "n_releases_24m": 65}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1877, forks 35 (observed 2026-08-28T04:05:47.947017+00:00)

## What it is
The core library of the Symfony Security component, providing infrastructure for authentication tokens, user providers, role hierarchies, and voter-based authorization decisions in PHP applications. It decouples authorization logic from credential storage and can be used standalone or within the Symfony framework.

## Use cases
- implement role-based access control in a php application
- build a custom authorization system with voters
- manage user roles and role hierarchies
- separate authorization logic from user credential providers
- check user permissions programmatically
- add authentication tokens to a non-framework php project

## When to choose
- you need fine-grained, testable authorization logic in PHP
- you use Symfony and want the framework's security core
- you want a standalone security library without a full framework

## When to avoid
- you need full HTTP firewall, login forms, and session handling (use symfony/security-http or the full framework)
- your project is not PHP-based
- you only need simple hardcoded permission checks

## Facets
- artifact type: library
- maturity: stable
- function: auth, authorization, security, middleware
- domain: security, web-development, backend, developer-tools
- platform: php, cross-platform
- tags: symfony, voters, role-hierarchy, user-providers, authentication, access-control, php-component

## Member repositories
- symfony/security-core (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:47.947017+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-30T03:14:43.436896+00:00, confidence not recorded.
  - readme: https://github.com/symfony/security-core (fetched 2026-08-28T04:05:47.947017+00:00, sha a1f7e8414349)
  - homepage: https://symfony.com/security (fetched 2026-08-29T10:53:33.608949+00:00, sha b8a4472dada7)
  - site_page: https://symfony.com/doc (fetched 2026-08-29T10:53:33.617952+00:00, sha 44889134f4fb)
  - site_page: https://symfony.com/releases (fetched 2026-08-29T10:53:33.619806+00:00, sha 5bd749e2b676)
  - site_page: https://symfony.com/blog/category/releases (fetched 2026-08-29T10:53:33.621583+00:00, sha cb9687c6ccb6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
