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

Laravel Openapi Cli Laravel Package

spatie/laravel-openapi-cli

Turn any OpenAPI spec into dedicated Laravel artisan commands with typed options for path params, query params, and request bodies. Add auth, caching, retries, and error handling, or pair with Laravel Zero to build standalone CLI tools.

View on GitHub
Deep Wiki
Context7
1.5.0

Non-JSON response bodies are written through untouched

A response body that could not be pretty-printed used to get a Response is not JSON (content-type: ..., status: ...) line, a blank line, a trailing newline, and a pass through Symfony's output formatter. All of that landed in the file when the output was redirected, so an endpoint returning a file could not be saved:

php artisan api:download-report > report.pdf   # was corrupt, now valid

The body is now written raw: no notice, no added newline, no formatting. Any <...> sequence in binary data survives instead of being read as a style tag.

The one remaining notice is for an HTML body you have not asked to see, which prints no body at all. Its wording changed to HTML response (status: 500, content-length: 1234). Use --output-html to see it.

If you relied on the old notice appearing in output, that is the breaking bit; everything else is unchanged.

1.4.0
  • Add AuthenticationException that auth() and retryOn() closures can throw to abort a command with a friendly message (and optional hint) before a request is sent

Full Changelog: https://github.com/spatie/laravel-openapi-cli/compare/1.3.1...1.4.0

1.3.1

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-openapi-cli/compare/1.3.0...1.3.1

1.3.0
  • Add retryOn() hook to re-issue a request after a >= 400 response (e.g. refresh an expired OAuth token on 401 and retry once)

Full Changelog: https://github.com/spatie/laravel-openapi-cli/compare/1.2.0...1.3.0

1.2.0

What's Changed

Full Changelog: https://github.com/spatie/laravel-openapi-cli/compare/1.1.0...1.2.0

1.1.0

What's Changed

New Contributors

Full Changelog: https://github.com/spatie/laravel-openapi-cli/compare/1.0.2...1.1.0

1.0.1
  • fix query parameters with invalid characters

Full Changelog: https://github.com/spatie/laravel-openapi-cli/compare/1.0.0...1.0.1

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.
steadrun/laravel-monitor
labyrinthe/connect-laravel
elmogy/layan
drewdan/sentinel-client
dskripchenko/laravel-llm
fatryst/nuonuo
stevenay/myanfont
gmostafa/php-graphql-client
xeviant/paystack
snowsoft/faker
meditationsteps/blogetc
animalyoung/laravel-influxdb
onix-solutions/sms-telera
lonely-lights/prosetta
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin