# DarkaOnLine/L5-Swagger

OpenApi or Swagger integration to Laravel

Repository: https://github.com/DarkaOnLine/L5-Swagger
Canonical: https://ross.abutalabs.com/products/l5-swagger
Homepage: https://github.com/DarkaOnLine/L5-Swagger
Language: PHP
License: MIT
License Family: permissive
Topics: laravel, laravel-5-package, l5-swagger, swagger-php, swagger-ui, swagger, openapi, documentation, specification, swagger-specification, openapi-annotations, api, ui
Last push: 2026-06-12T12:34:23+00:00

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 87, release rhythm 88, longevity 100
- inputs: {"age_days": 4188, "days_push": 82, "days_rel": 82, "gap_med": 23, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2931, forks 415 (observed 2026-08-28T04:07:30.652487+00:00)

## What it is
L5-Swagger is a Laravel package that integrates swagger-php and Swagger UI to generate and serve OpenAPI/Swagger documentation for Laravel APIs. It wraps these tools in a Laravel-friendly way, handling configuration, spec generation, and serving the interactive UI.

## Use cases
- generate OpenAPI documentation for a Laravel API
- serve interactive Swagger UI for my Laravel endpoints
- document REST API with OpenAPI annotations in Laravel
- add swagger docs to Laravel 10/11 project
- auto-generate API spec from Laravel controllers
- try out API endpoints from a swagger UI in Laravel

## When to choose
- you have a Laravel application and want OpenAPI/Swagger docs with minimal setup
- you want annotation-based spec generation via swagger-php plus a hosted Swagger UI
- you need OAuth/Passport integration with Swagger UI in Laravel

## When to avoid
- your project is not Laravel-based (use swagger-php and swagger-ui directly)
- you need to design specs first without code annotations (use a spec editor instead)
- you need API documentation for non-PHP backends

## Facets
- artifact type: library
- maturity: active
- function: documentation, api-documentation, templating
- domain: web-development, backend, apis, documentation, developer-tools
- platform: php, self-hosted
- tags: laravel-package, swagger-ui, swagger-php, openapi, api-docs, openapi-annotations, laravel, web-server

## Member repositories
- DarkaOnLine/L5-Swagger (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:30.652487+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-30T07:33:23.916441+00:00, confidence not recorded.
  - readme: https://github.com/DarkaOnLine/L5-Swagger (fetched 2026-08-28T04:07:30.652487+00:00, sha 7bfda2a10170)
  - homepage: https://github.com/DarkaOnLine/L5-Swagger (fetched 2026-08-29T09:48:32.674956+00:00, sha c6c5bf496ced)
- Data as of 2026-08-30T08:39:29.467469+00:00.
