spatie/laravel-openapi-cli
Generate Laravel Artisan commands from any OpenAPI spec. Each endpoint becomes a CLI command with typed options for path/query params and request bodies. Configure base URL, auth, caching, output formats, redirects, and custom error handling—great with Laravel Zero.
php artisan openapi:generate), reducing manual boilerplate for API clients, tests, or SDKs.Adopt if:
Look elsewhere if:
For Executives: "This package lets us treat our API as code—auto-generating OpenAPI specs from Laravel routes with a single CLI command. It cuts manual documentation work by 80%, reduces API misalignment, and unlocks AI tools to interact with our APIs intelligently. For example, we could auto-generate SDKs for partners or feed specs into our LLM for dynamic API orchestration. It’s a low-risk, high-reward way to standardize our API layer, similar to how we treat database migrations."
For Engineers:
*"Spatie’s laravel-openapi-cli gives us two superpowers:
php artisan openapi:generate) or reverse-engineer specs into Laravel code (e.g., for legacy APIs).How can I help you explore Laravel packages today?