# symfony/routing

Maps an HTTP request to a set of configuration variables

Repository: https://github.com/symfony/routing
Canonical: https://ross.abutalabs.com/products/routing
Homepage: https://symfony.com/routing
Language: PHP
License: MIT
License Family: permissive
Topics: php, symfony, component, symfony-component, router, routing, uri, url
Last push: 2026-08-22T13:46:57+00:00

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

## Adoption (not part of the score)
Stars 7613, forks 91 (observed 2026-08-28T04:10:02.030360+00:00)

## What it is
The Symfony Routing component maps HTTP requests to configuration variables, matching incoming URLs against defined routes and generating URLs from route names. It is a standalone PHP library usable independently or as part of the Symfony framework.

## Use cases
- match incoming http requests to controllers in php
- generate seo-friendly urls from route names
- define routes with yaml php or attributes
- validate route parameters and handle optional parameters
- implement localized and sub-domain routing
- build a custom php framework or microkernel

## When to choose
- you need battle-tested routing in a PHP project
- you want URL matching and generation decoupled from a full framework
- you need localized, prefixed, or attribute-based route configuration

## When to avoid
- your framework already bundles a router
- you need client-side or SPA routing
- you are not working in PHP

## Facets
- artifact type: library
- maturity: stable
- function: routing, web-framework, http-server
- domain: web-development, backend, apis
- platform: php, cross-platform
- tags: url-generation, route-matching, symfony-component, router, uri, web-server

## Member repositories
- symfony/routing (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:02.030360+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-29T17:36:50.027184+00:00, confidence not recorded.
  - readme: https://github.com/symfony/routing (fetched 2026-08-28T04:10:02.030360+00:00, sha 911ef44c8948)
  - homepage: https://symfony.com/routing (fetched 2026-08-29T08:32:05.107961+00:00, sha ce96dd6ad37c)
  - site_page: https://symfony.com/doc (fetched 2026-08-29T08:32:05.117662+00:00, sha 44889134f4fb)
  - site_page: https://symfony.com/doc/current/routing.html (fetched 2026-08-29T08:32:05.119763+00:00, sha 5b2e7db63404)
  - site_page: https://symfony.com/projects/phpmyfaq (fetched 2026-08-29T08:32:05.123246+00:00, sha 5482cfc39f34)
  - site_page: https://symfony.com/releases (fetched 2026-08-29T08:32:05.124874+00:00, sha f109a7a4a5da)
  - site_page: https://symfony.com/blog/category/releases (fetched 2026-08-29T08:32:05.126516+00:00, sha f34945599288)
- Data as of 2026-08-30T08:39:29.467469+00:00.
