spatie/laravel-openapi-cli
Generate Laravel Artisan commands from an OpenAPI spec. Each API endpoint becomes its own command with typed options for params and request bodies, plus auth, base URL, caching, redirects, and output formatting—ideal for building API CLIs with Laravel Zero.
register() in a service provider).php artisan command:name).->auth()->cache()->retryOn()), enabling fluent, declarative setup—similar to Laravel’s HTTP client or queue workers.--input '{"nested":{...}}').composer require spatie/laravel-openapi-cli.php artisan vendor:publish --provider="Spatie\OpenApiCli\OpenApiCliServiceProvider".AppServiceProvider):
OpenApiCli::register('https://api.example.com/openapi.yaml', 'api')
->auth(fn () => auth()->user()->apiToken)
->cache(ttl: 3600);
php artisan api:list and sample requests.php artisan api:process-invoices in workflows).api:list --help).--param-name=VALUE hints).api:fetch-orders, api:create-user).payments:, inventory:).php mycli:process-data).API_BASE_URL).legacy/ namespace if needed.openapi-cli validate).How can I help you explore Laravel packages today?