Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Swagger Laravel Package

hms5232/laravel-swagger

Laravel package for Swagger/OpenAPI documentation: generate interactive API docs from PHP annotations, serve the Swagger UI, and keep specs aligned with your routes and controllers—a simple drop-in way to document REST APIs in Laravel projects.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • API documentation strategy: Supports embedding Swagger UI and Swagger Editor directly inside a Laravel application, enabling self-hosted API reference docs and spec authoring without standing up a separate developer portal.
  • Build vs. buy: Adopting this package is a cheaper, lower-effort option than building Swagger UI/Editor integration in-house, especially for teams that need basic OpenAPI rendering and editing within Laravel.
  • Dependency and version policy: v0.2.0 updates default Swagger UI to 5.31.0 and Swagger Editor to 5.0.3, reducing pressure to pin or vendor front-end assets manually and helping keep API docs aligned with current Swagger tooling.
  • Security and compliance flexibility: The new editor.monaco.override_get_worker config lets teams control whether the Editor v5 apidom.worker.js is overridden. This matters for CSP rules, custom asset hosting, offline/air-gapped setups, and environments where worker loading is restricted.
  • Framework roadmap: Laravel 13 unit test support signals the package is tracking Laravel’s release cadence, reducing risk when planning a Laravel upgrade.
  • Use cases: Internal API reference, developer onboarding, public/partner API docs, OpenAPI spec editing, QA/debugging of API contracts.

When to Consider This Package

  • Consider it when you have a Laravel application, maintain OpenAPI/Swagger specs, and want self-hosted Swagger UI/Editor with minimal integration work.
  • Consider v0.2.0 specifically if you are upgrading from 0.1.x, use Swagger Editor v5, or need control over Monaco worker asset behavior. Plan for the manual config/swagger.php addition or republish the config with --force.
  • It is a good fit if you want configurable Swagger UI/Editor versions and a lightweight in-app documentation surface.
  • Look elsewhere if you need a full API developer portal with authentication, analytics, multi-version docs, search, collaboration, mocking, contract testing, or governance features.
  • Also look elsewhere if you require enterprise support/SLA, are not on Laravel, need official Swagger distributions only, or cannot accept the maintenance risk of a 0.x, likely single-maintainer package.
  • Evaluate release cadence and issue responsiveness before standardizing on it for externally facing documentation.

How to Pitch It (Stakeholders)

  • For executives: This is a low-cost, self-hosted API documentation package that improves developer experience and reduces support burden. v0.2.0 keeps Swagger UI/Editor current, adds a configurable asset-workaround setting for restricted environments, and signals Laravel 13 readiness. The upgrade is not described as breaking, but it does require a small config change.
  • For engineering: Upgrade to ^0.2.0, add the new editor.monaco.override_get_worker config key or republish config/swagger.php with --force, and regression-test Swagger Editor Monaco worker loading, CSP/asset paths, and docs rendering. Defaults move to Swagger UI 5.31.0 and Swagger Editor 5.0.3, and Laravel 13 is covered by unit tests. Treat it as a low-risk upgrade with targeted QA rather than a no-op.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels