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

pdfloresjdav/api-doc-bundle

pdfloresjdav/api-doc-bundle is a Symfony bundle that turns PHP API metadata into readable documentation, helping teams publish endpoint references, schemas, and request/response details with minimal setup. It fits into existing Symfony projects and aims to make API docs easier to generate and mainta...

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit. The first thing to flag: the package is named pdfloresjdav/api-doc-bundle but its upstream is NelmioApiDocBundle, which is a Symfony bundle, not a Laravel package. It ships a DependencyInjection/*Extension, a bundle class, Symfony routing/event integration, and expects config/packages/*.yaml — none of which map to a Laravel service provider, config/*.php, or Artisan commands. If the consuming application is Laravel, the fit is effectively zero without an adapter layer. If it is Symfony, the fit is real, but the fork is the wrong artifact to standardize on.

Integration feasibility. The package is a personal fork with 0 stars, 0 dependents, and no evidence of release tagging, CI, or security advisory coverage. There is no published support contract implied. Composer-level integration is technically possible (pin the VCS repo or a tag), but there is no versioning discipline to depend on and no upgrade path. The underlying approach — generating OpenAPI/Swagger docs by parsing annotations/docblocks via doctrine/annotations — is also on the deprecated side: PHP 8 attributes are the forward path, and upstream Nelmio has already moved there in v4+.

Technical risk.

  • Supply chain: unmaintained fork, unknown maintainer responsiveness, no CVE patch stream. Security tooling will likely flag it as an abandoned/unknown-source dependency.
  • Namespace collision: the fork almost certainly reuses the Nelmio\ApiDocBundle\* namespace, so co-installing it alongside the upstream package is not safe.
  • Fork divergence: no visible record of what was changed versus upstream, so engineers cannot reason about behavior from upstream docs.
  • Licensing/attribution: must be verified before any commercial use, particularly if the fork dropped upstream NOTICE/LICENSE files.
  • Runtime cost: annotation scanning is reflection-heavy; correctness depends on cache warmup and a properly configured cache warmer.

Key questions for the requester.

  1. Is the target application Laravel or Symfony? The answer determines whether this package is even relevant.
  2. Why a fork instead of nelmio/api-doc-bundle upstream? Is there a local patch that must be preserved?
  3. What PHP and framework versions must be supported?
  4. Is there an owner for the fork, and what is the commit/tag we would pin?
  5. What is the actual requirement — OpenAPI spec generation, interactive docs UI, or contract testing? Those have different best-fit tools.

Integration Approach

Stack fit.

  • Symfony: use upstream nelmio/api-doc-bundle (v4/v5, PHP 8 attributes, OpenAPI 3). Do not adopt the fork.
  • Laravel: this package is not the tool. The idiomatic equivalents are knuckleswtf/scribe (doc generation from routes/annotations), dedoc/scramble (zero-annotation OpenAPI from code), or darkaonline/l5-swagger if the team is committed to Swagger-PHP annotations.

Migration path.

  1. Confirm the framework and the actual documentation requirement before any code changes.
  2. If Symfony and a fork patch exists: diff the fork against the matching upstream tag, upstream the patch if possible, then depend on nelmio/api-doc-bundle with a pinned constraint.
  3. If Laravel: treat this as a no-go and run a short bake-off between Scribe and Scramble on one representative controller group.
  4. If the fork must be used short-term: reference it as a VCS repository pinned to a commit SHA, record it in the SBOM, and set an explicit exit date.

Compatibility. Validate the matrix explicitly: PHP version, framework major, doctrine/annotations presence (or attribute-only mode), symfony/routing, and the OpenAPI spec version emitted (Swagger 2 vs OpenAPI 3). Attribute-based config generally requires PHP 8+ and framework versions that support it; annotation-only setups inherit the deprecation timeline.

Sequencing.

  1. Framework/requirement confirmation (1 day).
  2. Security and license review of the fork (1–3 days, blocking).
  3. Decision: upstream swap, alternative tool, or time-boxed fork adoption.
  4. Pilot on one bounded API surface (one or two controllers), measuring cache warmup and doc build time.
  5. Rollout to full API surface, wired into CI so the spec is a build artifact, not a manual step.

Operational Impact

Maintenance. This is the dominant concern. A zero-adoption fork has no maintenance cadence, no release notes, and no upgrade story. Every framework major upgrade becomes an internal fork-maintenance task. Budget for this explicitly, or avoid it.

Support. Community support routes to upstream documentation and issue trackers, which will not reflect fork behavior. Internal engineers become the de facto maintainers. There is no vendor to escalate to, and no reasonable expectation of a fix turnaround.

Scaling. Doc generation is a build-time/CI activity, so it does not affect request latency — provided annotation scanning is cached and the cache warmer is correctly configured. Two scaling limits matter: (a) cache warmup time grows with API surface and can add minutes to deploy on large route sets, and (b) generated spec size can become unwieldy for consumers, requiring splitting by tag or version.

Failure modes.

  • Compile/cache-warm failure: a malformed annotation breaks the container build, not just the docs — this is a hard deploy blocker.
  • Silent drift: docs generated from annotations diverge from actual behavior when handlers change without annotation updates, producing confidently wrong API contracts.
  • Dependency abandonment: security scanners and platform review gates flag unmaintained packages, potentially blocking releases.
  • Namespace conflict: installing upstream alongside the fork causes class-resolution failures that are confusing to diagnose.
  • Version lock: the fork pins transitive Symfony/Doctrine versions, holding the whole application back on upgrades.

Ramp-up. Engineers familiar with Nelmio will transfer conceptual knowledge quickly, but must read the fork's diff to know where behavior diverges — cost is low but nonzero and recurring with each new hire. For a Laravel team, ramp-up is effectively a rewrite of the integration approach, not a learning curve. Recommendation: do not adopt this fork. Use upstream Nelmio for Symfony or Scribe/Scramble for Laravel, and treat the fork as a reference at most.

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