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

Swagger Lume Laravel Package

darkaonline/swagger-lume

SwaggerLume brings Swagger/OpenAPI documentation to Laravel and Lumen apps. It wraps swagger-php to scan your annotations and generate interactive API docs, with a bundled Swagger UI and simple configuration.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • API documentation strategy: Decides whether to expose a live, auto-generated Swagger UI and OpenAPI contract for Lumen-based services rather than maintaining static docs manually. The 11.0 release keeps this option viable for teams tracking Lumen's current major line (Lumen 11).
  • Code-first vs. contract-first: Supports a code-first workflow where controller annotations (docblocks or PHP 8 attributes, via swagger-php 4) become the API contract, reducing drift between implementation and documentation.
  • Framework lifecycle and upgrade planning: 11.0 adds Lumen 11 and swagger-php 4 support, which materially extends the package's runway and makes it a credible choice for services already on or migrating to Lumen 11 — but the accompanying major-version bump means annotation and dependency migrations need to be budgeted, not assumed free.
  • Developer experience and onboarding: Improves internal and external developer onboarding by giving consumers a discoverable API reference, request/response schemas, and try-it-out UI.
  • Partner and customer integrations: Reduces integration support load when APIs are exposed to partners or customers by making endpoints, parameters, and auth expectations explicit.
  • Roadmap sequencing: Provides a low-cost foundation for later investments such as API versioning, deprecation notices, SDK generation, contract testing, and a developer portal.
  • Build vs. buy/adopt: Favors adopting a small MIT-licensed integration over building custom documentation plumbing for Lumen services, provided the team is already committed to Lumen and OpenAPI annotations.
  • Quality and release readiness: Creates a forcing function for documenting endpoints, validating schemas in CI, and treating API contracts as release artifacts.
  • Use cases: Internal microservices discovery, public/partner API references, QA and support enablement, API governance, and pre-sales/technical evaluation demos.

When to Consider This Package

  • You have Lumen/PHP services — now including Lumen 11 — and want Swagger/OpenAPI documentation generated from existing controller annotations.
  • You want the swagger-php 4 generation pipeline, including PHP 8 attribute-style annotations if the team prefers them over docblock annotations, and are prepared to migrate existing annotations if coming from swagger-php 3.
  • The team values a small, MIT-licensed, low-ceremony integration over a heavier API management platform.
  • You need a Swagger UI and generated OpenAPI document without building custom routes, middleware, and asset serving.
  • Documentation can be code-first and lives close to the implementation, with generation validated in CI.
  • You can accept Lumen-specific coupling and are comfortable pinning package versions and monitoring maintenance.
  • You want a fast proof of value before deciding whether to invest in a broader developer portal or API gateway.

Look elsewhere when:

  • The stack is Laravel rather than Lumen; use the Laravel-oriented equivalent such as L5-Swagger unless there is a specific reason to standardize on this package.
  • You need first-class OpenAPI 3.1 output, advanced schema tooling, Redoc/Stoplight, or a full API governance platform. Confirm what the resolved swagger-php 4.x version emits before committing to a 3.1 contract.
  • The organization is moving off Lumen or standardizing on a non-PHP stack.
  • You need vendor-backed support, SLAs, or high ecosystem adoption; a single-maintainer project with community PRs and near-zero measured dependents is a bus-factor risk to manage, not an enterprise support contract. The 11.0 release is a positive maintenance signal, but validate cadence rather than assume it.
  • The team prefers design-first contracts managed outside application code.
  • You cannot absorb a major-version migration: 11.0 is a breaking bump (Lumen 11 + swagger-php 4), so pin, test, and plan the upgrade explicitly.
  • You need built-in analytics, monetization, gateway policies, or lifecycle management; this package documents APIs, it does not manage them.

How to Pitch It (Stakeholders)

For executives: This is a low-cost, MIT-licensed way to make our Lumen APIs easier to discover, integrate with, and support. It turns existing controller annotations into a live Swagger UI and OpenAPI contract, which can reduce partner onboarding friction, shorten internal ramp-up time, and support API governance without buying a platform. The latest major release adds Lumen 11 and swagger-php 4 support, which meaningfully extends its useful life and aligns it with the framework version we are standardizing on. The main caveats are strategic and operational: it is Lumen-specific, it is a small-maintainer project with limited ecosystem adoption, and the major-version bump requires a planned migration. Adopt it as a focused documentation layer, not as a long-term API management bet.

For engineering: SwaggerLume integrates swagger-php with Lumen and exposes generated Swagger/OpenAPI docs through a UI. Release 11.0 adds Lumen 11 and swagger-php 4 support, so it now fits services on the current Lumen line and lets us use swagger-php 4 annotation tooling, including PHP 8 attributes. Treat it as a breaking upgrade: pin versions, migrate annotation imports and namespaces (the release explicitly calls out the OpenApi\Annotations import pattern as a common pitfall), and generate plus validate the spec in CI. Keep an exit path to Laravel/L5-Swagger or another OpenAPI toolchain if Lumen's role changes. If we need OpenAPI 3.1 guarantees, design-first workflows, or vendor-backed API governance, evaluate alternatives.

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.
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel