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

Api Doc Bundle Laravel Package

streamlike/api-doc-bundle

A Symfony bundle for generating API documentation directly from your application. It integrates with your existing PHP setup to expose routes and metadata, helping teams build browsable reference docs with minimal configuration.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • API documentation strategy for internal/partner-facing REST APIs — whether to generate docs from source annotations versus maintaining a hand-written OpenAPI spec or a separate docs portal. The package supports the "docs-as-code, single source of truth" position because annotations live next to the controllers they describe.
  • Build vs. buy vs. adopt — an argument for adopting an existing annotation-to-OpenAPI generator rather than building an in-house docs pipeline. This is a concrete, low-cost candidate for that evaluation, though its adoption numbers make it one input among several, not a default.
  • Developer experience roadmap — API docs are a recurring theme in DX backlogs and reduce onboarding time for frontend, mobile, and integration partners. Choosing a generator is a prerequisite for decisions like "publish a public developer portal," "ship client SDKs from OpenAPI," or "gate breaking changes in CI with spec diffs."
  • Contract-first vs. code-first API design — adopting an annotation-driven generator locks the team into a code-first workflow. That is a real architectural commitment affecting how API reviews and versioning are run, so it belongs in an ADR rather than an incidental library choice.
  • Migration and consolidation decisions — the package is a fork of NelmioApiDocBundle with zero stars and zero dependents. It is best read as a signal that a team has locally patched a well-known Symfony bundle, which raises the roadmap question of whether to contribute upstream, maintain the fork deliberately, or replace it.

When to Consider This Package

Consider it only under narrow conditions:

  • You are on Symfony, not Laravel. NelmioApiDocBundle and this fork are Symfony bundles built around the Symfony DI container, event system, and routing. Despite being catalogued here as a Laravel/PHP package, it will not drop into a Laravel application without significant adaptation. If the stack is Laravel, look at Scramble, Scribe, or L5-Swagger instead.
  • You specifically need the fork's delta. With zero stars and zero dependents, the fork's only defensible reason to exist is a patch the upstream bundle does not carry. Identify that patch first; if the need is met upstream, depend on upstream directly rather than on an unmaintained derivative.
  • You already use annotation-based routing and want docs generated from the same annotations. If the codebase is attribute-driven PHP 8, confirm the fork supports native attributes rather than legacy docblock annotations before committing.
  • Your API surface is already described in annotations. The package's value is inversely proportional to how much annotation work is missing.

Look elsewhere when:

  • Stack is Laravel or another non-Symfony framework — framework mismatch is disqualifying.
  • You want a maintained dependency with a security response path. Zero stars, zero dependents, and a single-maintainer fork imply no community review, no downstream pressure to fix issues, and unbounded bus-factor risk. For a public-facing API surface this is a material procurement concern.
  • Schema-first design is preferred — if the spec is the source of truth, generate code from OpenAPI (e.g., via a contract-testing or codegen toolchain) rather than generating the spec from code.
  • You need modern OpenAPI 3.1 features — verify support explicitly; annotation-based generators frequently lag on JSON Schema 2020-12 semantics.
  • Compliance or published-SLA contexts where third-party dependency provenance must be auditable.

How to Pitch It (Stakeholders)

For executives: This is a small, zero-adoption open-source component that turns code annotations into REST API documentation, so docs stay in sync with the code that ships. The strategic value is real — accurate API docs shorten partner integration cycles and reduce support load — but this specific package is the wrong vehicle: it is an unmaintained-looking fork of a mature Symfony bundle, with no community and no downstream users, and it does not fit a Laravel stack. Recommend we treat it as a reference implementation, not a dependency, and standardize on a maintained alternative for the framework we actually run.

For engineering: The underlying approach — generate OpenAPI from annotations at build time, publish the spec as a CI artifact, and diff it on pull requests — is worth adopting. The bundle itself is a Symfony-only fork of NelmioApiDocBundle with no visible maintenance signal; vendoring it means we own its upgrade path and any security response. If we are on Symfony, propose depending on upstream Nelmio directly and documenting any patch we actually need. If we are on Laravel, propose Scramble or Scribe and evaluate against three criteria: attribute support on PHP 8, OpenAPI 3.1 output fidelity, and whether the spec can be emitted non-interactively for CI. Either way, the decision to record is code-first versus contract-first, because that choice constrains our API review process for the next several years.

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.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console