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

nelmiopros/api-doc-bundle

A Symfony/PHP bundle that generates interactive API documentation from your controllers, routes, and annotations. It provides a browsable web UI and machine-readable specs, making it easier to explore, test, and maintain your API endpoints.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • API as a product surface. Annotation-driven spec generation forces the team to treat the API contract as a first-class artifact rather than a byproduct of controller code. This directly supports decisions about versioning, deprecation windows, and public-vs-private endpoint tiers.
  • Build vs. buy for developer portals. Whether to hand-roll docs, adopt a generator, or buy a hosted portal (ReadMe, Stoplight, Bump.sh). Annotation-sourced specs keep the marginal cost of a portal low because the source of truth already exists in code.
  • Partner and integration roadmap. Reliable, always-current endpoint documentation is a prerequisite for opening an API to third parties, publishing SDKs, or shipping a self-serve onboarding flow. It gates revenue-adjacent decisions like marketplace integrations.
  • Support-cost reduction as a product investment. Fewer "how do I call this?" tickets and shorter integration cycles are measurable outcomes you can attribute to a documentation initiative, which helps justify roadmap capacity against feature work.
  • Spec-first vs. code-first strategy. A generator that derives OpenAPI from annotations commits you to code-first. That has downstream consequences for contract testing, mock servers, and client codegen — decisions better made deliberately than by default.
  • Compliance and procurement readiness. Security review, SOC2, and enterprise procurement increasingly ask for a machine-readable API specification. Having one generated from code rather than maintained by hand is an audit-friendly answer.

When to Consider This Package

Consider it only if all of the following hold:

  • The service is built on Symfony, not Laravel. This package is a fork of NelmioApiDocBundle, which is a Symfony bundle built around Symfony's routing, serializer, and annotation/attribute metadata. It will not drop into a Laravel application without meaningful adaptation, and in a Laravel codebase it is the wrong tool regardless of merit.
  • You are already annotation/attribute-driven and want documentation generated without a separate authoring step.
  • You accept the maintenance risk: this specific fork shows zero stars and zero dependents, which is a strong signal of an unmaintained or personal fork. Prefer the upstream nelmio/NelmioApiDocBundle project, which has real adoption, CI, and security response.
  • You need a bundled HTML UI plus spec output in one dependency and are comfortable pinning a version you have audited.

Look elsewhere if:

  • You are on Laravel. Use dedoc/scramble (attribute/reflection-based, low-config) or knuckleswtf/scribe (docs plus human-readable output). For OpenAPI-first flows, darkaonline/l5-swagger with zircote/swagger-php is the conventional path. All have active maintenance and community validation this fork lacks.
  • You want a spec-first workflow. Design in OpenAPI and validate against it in CI; generators that infer from code drift toward documenting whatever was implemented, including inconsistencies.
  • You need long-term supply-chain confidence. Zero dependents means no downstream pressure to fix breakage, no ecosystem of workarounds, and no evidence anyone has run this in production at scale. For a customer-facing API surface, that is an unacceptable concentration of risk.
  • Your team is small and non-Symfony-fluent. The onboarding cost of annotation conventions often exceeds the cost of a straightforward static spec plus a hosted renderer.

PM recommendation in one line: validate the capability (generated, always-current API docs) as a genuine product need, but reject this specific artifact for any Laravel context and default to upstream or a Laravel-native alternative.

How to Pitch It (Stakeholders)

For executives: Our API is a product surface, and right now its documentation is either stale or manual labor. Every integration partner, internal consumer, or prospective customer who cannot self-serve becomes a support ticket and a delayed deal. Generating the API specification from the code we already write removes an entire class of drift — the docs cannot silently disagree with the implementation — and it makes us procurement-ready, since enterprise buyers increasingly demand a machine-readable spec. This is a low-effort, compounding investment in developer experience.

For engineering: Annotation-driven generation means the spec is a build artifact, not a chore. It lives next to the routes it describes, it fails visibly when a contract changes, and it feeds contract tests, mock servers, and client codegen downstream. One caveat I want to flag up front: this particular repository is an abandoned fork of NelmioApiDocBundle — a Symfony bundle, not a Laravel package — with no stars, no dependents, and no maintenance signal. I am recommending we adopt the capability, using the upstream Symfony bundle if we are on Symfony, or dedoc/scramble / scribefor Laravel. I will not put an unmaintained zero-dependency fork in the path of a customer-facing API.

Ask: one engineering spike, timeboxed, to compare spec output quality from the shortlisted generator against a hand-written spec, plus a decision on whether the API contract is owned by backend or by a design-first workflow.

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.
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
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource