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

Openapi Introspector Laravel Package

radebatz/openapi-introspector

radebatz/openapi-introspector inspects OpenAPI/Swagger specifications at runtime, exposing endpoints, schemas, and metadata to Laravel and PHP apps. It helps generate documentation, validate APIs, and integrate specs into tooling with a clean, framework-friendly API.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • API contract automation for Laravel services — generating OpenAPI specs directly from routes, controllers, and PHP 8 attributes reduces the manual drift between implementation and published API docs.
  • Build vs. buy for API documentation tooling — supports "buy/adopt" decisions where the alternative is hand-maintained YAML/JSON specs or a bespoke generator. The 1.0.1 fix set (collision handling, path-parameter mapping, server-prefix stripping) directly addresses the correctness risks that would otherwise justify building in-house.
  • Incremental migration to attribute-based specs — "hybrid mode" fixes mean teams can run classic annotations alongside new attributes during a migration, which lowers the cost of a phased rollout decision.
  • Roadmap scoping — if your spec generation breaks on overlapping/documented routes (fixed in 1.0.1), that was a genuine adoption blocker; the fix removes a reason to descope API-docs work from the quarter.
  • Contract-first vs. code-first strategy — this package strengthens the code-first position by making generated specs more faithful (correct path parameters, correct server-relative paths).

When to Consider This Package

Adopt when:

  • You have a Laravel app and want OpenAPI specs derived from existing routes/controllers rather than authored separately.
  • You are on PHP 8 and want attribute-based documentation, or you need a combined annotation + attribute mode during migration.
  • Your API surface includes parameterized routes and multiple documented operations that may collide with route-derived ones — 1.0.1 is specifically about making these behave predictably.
  • Your spec is served behind a versioned/prefix server URL; the prefix-stripping fix prevents duplicated segments in generated paths.

Look elsewhere when:

  • You need a mature, widely adopted ecosystem with extensive community support and third-party integrations (e.g., established swagger-php/zircote tooling alone, or a hosted docs platform).
  • Your team is committed to contract-first design — you would author the spec first and validate against it rather than introspect.
  • You are not on Laravel/PHP 8, or you need framework-agnostic introspection.
  • You require guaranteed API stability across minor bumps; this is a 1.0.x package with a small maintainer footprint, so pin versions and budget for upgrade review.

Note on 1.0.1: it is a patch release of correctness fixes, not new capabilities — no breaking changes indicated, so upgrading from 1.0.0 is low risk. Verify that "hybrid mode" and route-collision behavior in your own route set now match expectations.

How to Pitch It (Stakeholders)

For executives: Adopting this package lets our Laravel services publish accurate OpenAPI specs automatically from the code we already write, cutting manual documentation effort and the risk of docs drifting from reality. The 1.0.1 patch is a stability and correctness release — it fixes how route parameters, overlapping routes, and prefixed server URLs are reflected in the spec. No breaking changes; upgrade is low cost.

For engineering: 1.0.1 tightens correctness in four areas we would otherwise have had to work around: classic annotations are preserved in hybrid mode, path parameters map onto attribute placeholders positionally, documented operations survive route collisions, and server-URL prefixes are stripped from route paths. It remains a small-footprint, single-maintainer 1.0.x dependency — pin it, keep the upgrade path simple, and treat it as internal tooling rather than a platform commitment.

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