# FriendsOfSymfony/FOSRestBundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

Repository: https://github.com/FriendsOfSymfony/FOSRestBundle
Canonical: https://ross.abutalabs.com/products/fosrestbundle
Homepage: http://symfony.com/doc/master/bundles/FOSRestBundle/index.html
Language: PHP
License: MIT
License Family: permissive
Topics: php, symfony, symfony-bundle, rest, rest-api
Last push: 2026-02-10T02:37:33+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 66, release rhythm 37, longevity 100
- inputs: {"age_days": 5644, "days_push": 205, "days_rel": 205, "gap_med": 434, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2795, forks 688 (observed 2026-08-28T04:07:22.320605+00:00)

## What it is
FOSRestBundle is a Symfony bundle providing tools for rapidly building RESTful APIs, including a format-agnostic view layer, Accept header negotiation, request body decoding, and RFC 7807-compatible exception rendering. It integrates with the Symfony Serializer or JMS Serializer components.

## Use cases
- build a REST API with Symfony
- negotiate response formats from Accept headers
- decode JSON request bodies into controller parameters
- return RFC 7807 problem+ error responses
- map exceptions to HTTP status codes
- version a REST API

## When to choose
- you are building a REST API on Symfony and want content negotiation and view-layer conventions
- you need consistent exception-to-HTTP-status mapping and RFC 7807 error rendering
- you want loosely coupled listeners for body decoding, param fetching, and versioning

## When to avoid
- you are not using the Symfony framework
- you only need a simple JSON API where Symfony's built-in attributes and serializer suffice
- you are building a GraphQL or non-REST API

## Facets
- artifact type: plugin
- maturity: stable
- function: api-framework, middleware, serialization, routing
- domain: web-development, backend, apis
- platform: php
- tags: symfony-bundle, rest-api, content-negotiation, rfc-7807, view-layer, web-server

## Member repositories
- FriendsOfSymfony/FOSRestBundle (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:22.320605+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-29T18:49:13.146345+00:00, confidence not recorded.
  - readme: https://github.com/FriendsOfSymfony/FOSRestBundle (fetched 2026-08-28T04:07:22.320605+00:00, sha 40feedf173fe)
  - homepage: http://symfony.com/doc/master/bundles/FOSRestBundle/index.html (fetched 2026-08-29T09:54:51.901884+00:00, sha 0154b5eba042)
- Data as of 2026-08-30T08:39:29.467469+00:00.
