darkaonline/l5-swagger
Laravel-friendly wrapper around swagger-php and Swagger UI. Generate and serve OpenAPI/Swagger docs from annotations, with configurable routes, UI, and assets. Includes install/config guides, migration notes, tips, and Passport auth examples.
/docs endpoint).spectral or openapi-linter).v1, v2) via array config, critical for backward compatibility during API evolution./docs endpoint in 10 minutes).For Executives: *"L5-Swagger cuts API documentation time from weeks to days by auto-generating OpenAPI specs from our Laravel codebase. This enables:
/docs endpoints.For Engineering: *"This package:
For Developers:
*"No more copying routes into Swagger manually—just add @OA\* attributes to your controllers, and the package spits out a live, searchable API docs site at /docs. Example:
#[OA\Get(
path: '/users/{id}',
summary: 'Get a user',
parameters: [new OA\Parameter(...)]
)]
public function show(User $user) { ... }
Bonus: Dark mode, OAuth examples, and YAML/JSON toggle. 5-minute setup."*
How can I help you explore Laravel packages today?