# FriendsOfSymfony/FOSJsRoutingBundle

A pretty nice way to expose your Symfony routing to client applications.

Repository: https://github.com/FriendsOfSymfony/FOSJsRoutingBundle
Canonical: https://ross.abutalabs.com/products/fosjsroutingbundle
Language: PHP
License Family: other
Topics: php, symfony, symfony-bundle, routing, javascript
Last push: 2025-11-04T21:03:54+00:00

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

## Adoption (not part of the score)
Stars 1502, forks 259 (observed 2026-08-28T04:04:54.469530+00:00)

## What it is
A Symfony bundle that exposes your Symfony routes to client-side JavaScript, letting you generate URLs with parameters in the browser like Symfony's Router component. It is a port of the symfony 1.x chCmsExposeRoutingPlugin.

## Use cases
- generate Symfony route URLs from JavaScript
- expose backend routes to a client-side SPA
- build URLs with parameters in frontend code without hardcoding paths
- keep client-side links in sync with Symfony routing changes
- integrate Symfony backend with a JavaScript frontend

## When to choose
- you have a Symfony backend with a JavaScript frontend that needs to build route URLs
- you want to avoid hardcoding URL paths in client-side code
- you need parameterized URL generation matching Symfony's Router behavior

## When to avoid
- your project does not use Symfony
- your frontend and backend are fully decoupled with a static API contract
- you only need simple hardcoded URLs

## Facets
- artifact type: library
- maturity: active
- function: routing, web-framework
- domain: web-development, frontend, backend, apis
- platform: php
- tags: symfony-bundle, url-generation, client-side-routing, javascript, web-server

## Member repositories
- FriendsOfSymfony/FOSJsRoutingBundle (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:54.469530+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-30T04:32:51.445993+00:00, confidence not recorded.
  - readme: https://github.com/FriendsOfSymfony/FOSJsRoutingBundle (fetched 2026-08-28T04:04:54.469530+00:00, sha ce0ba9899215)
- Data as of 2026-08-30T08:39:29.467469+00:00.
