Spatie has released Laravel OpenAPI CLI, a package that auto-generates Laravel Artisan commands from OpenAPI specifications. Each API endpoint in a spec becomes its own typed command with path parameters as required options and query parameters as optional ones. Commands follow a `{prefix}:{http-method}-{path}` naming pattern, support JSON/YAML output, file uploads via multipart, raw JSON input, and a fluent registration API with options for caching, auth tokens, redirect following, custom error handlers, and operation ID-based naming. The package also integrates with Laravel Zero for standalone CLI apps.

3m read timeFrom laravel-news.com
Post cover image
Table of contents
# How It Works# Running Commands# Configuration Options# Installation
10.8K Impressions1 Comment