Download the PHP package victormgomes/scramble-extensions without Composer
On this page you can find all versions of the php package victormgomes/scramble-extensions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download victormgomes/scramble-extensions
More information about victormgomes/scramble-extensions
Files in victormgomes/scramble-extensions
Package scramble-extensions
Short Description Useful extensions for the dedoc/scramble package
License MIT
Homepage https://github.com/victormgomes/scramble-extensions
Informations about the package scramble-extensions
Scramble Extensions
Useful extensions for the dedoc/scramble package
Introduction
Scramble Extensions provides a collection of powerful tools to supercharge your dedoc/scramble documentation. It automates common API documentation tasks like adding security headers, handling multi-tenancy, and providing deep integration for Spatie's Laravel Data DTOs.
Why use this package?
- Automation: Automatically add Authorization and Tenant headers to your OpenAPI specification.
- Rich DTO Support: Seamlessly generate schemas for complex DTOs built with
spatie/laravel-data. - Clean Documentation: Keep your controller annotations minimal by letting these extensions handle the global requirements of your API.
- Better DX: Provide a much more accurate and interactive "Try It" experience in your documentation UI.
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by sponsoring us on GitHub.
Installation
Usage
Register the desired extensions in your config/scramble.php file:
Included Extensions
- AddAuthorizationHeader: Automatically adds the Bearer token field to authenticated routes.
- AddTenantHeader: Injects the required Tenant-ID header for multi-tenant routes.
- SpatieData: Generates accurate OpenAPI schemas from
spatie/laravel-dataobjects.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
- Victor M. Gomes
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of scramble-extensions with dependencies
spatie/laravel-package-tools Version ^1.16
dedoc/scramble Version ^0.13
illuminate/contracts Version ^11.0||^12.0||^13.0
illuminate/support Version ^11.0||^12.0||^13.0
spatie/laravel-data Version ^4.0||^5.0
webmozart/assert Version ^1.11
nikic/php-parser Version ^5.0