# nelmio/NelmioApiDocBundle

Generates documentation for your REST API from attributes

Repository: https://github.com/nelmio/NelmioApiDocBundle
Canonical: https://ross.abutalabs.com/products/nelmioapidocbundle
Language: PHP
License: MIT
License Family: permissive
Topics: php, symfony-bundle, symfony, bundle, api, api-documentation, redoc, swagger, swagger-php, openapi
Last push: 2026-08-24T03:56:16+00:00

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

## Adoption (not part of the score)
Stars 2365, forks 905 (observed 2026-08-28T04:06:41.529248+00:00)

## What it is
A Symfony bundle that generates OpenAPI/Swagger documentation for REST APIs from PHP 8 attributes and code analysis. It exposes interactive docs (Swagger UI, Redoc) and machine-readable OpenAPI specs for Symfony applications.

## Use cases
- generate openapi spec from symfony controllers
- document rest api endpoints with php attributes
- serve swagger ui for my symfony api
- auto-generate api docs from dto classes
- produce openapi 3.0 yaml/json for a php backend
- integrate redoc documentation into symfony app

## When to choose
- you have a Symfony (6.4+) or PHP 8.1+ REST API and want docs generated from attributes
- you need OpenAPI 3.0 specs with Swagger UI or Redoc rendering
- you want docs kept in sync with your code automatically

## When to avoid
- you use a non-Symfony PHP framework or PHP below 8.1
- you rely on legacy annotations (removed in 5.x)
- you need Swagger 2.0 output (use bundle version 3)

## Facets
- artifact type: library
- maturity: active
- function: api-documentation, documentation, api-framework, middleware
- domain: web-development, apis, documentation, backend
- platform: php, self-hosted
- tags: symfony-bundle, openapi, swagger, redoc, rest-api, php-attributes, web-server

## Member repositories
- nelmio/NelmioApiDocBundle (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:41.529248+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-30T02:36:00.184277+00:00, confidence not recorded.
  - readme: https://github.com/nelmio/NelmioApiDocBundle (fetched 2026-08-28T04:06:41.529248+00:00, sha c7c46e1370bf)
- Data as of 2026-08-30T08:39:29.467469+00:00.
