Weave Code
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

Scramble Laravel Package

dedoc/scramble

Scramble generates up-to-date OpenAPI 3.1 API docs for Laravel automatically from your code—no PHPDoc annotations needed. Adds /docs/api UI and /docs/api.json schema routes (local by default, configurable via gate).

View on GitHub
Deep Wiki
Context7
v0.13.32

What's Changed

  • Improve JSON schema examples: add multiple [@example](https://github.com/example) support, avoid using example (deprecated, using examples instead) when serializing JSON schemas by @romalytvynenko in https://github.com/dedoc/scramble/pull/1205
  • Improve Laravel 10.x compatibility for paginators

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.31...v0.13.32

v0.13.31

What's Changed

New Contributors

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.30...v0.13.31

v0.13.30

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.29...v0.13.30

v0.13.29

What's Changed

  • Fix config inconsistency

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.28...v0.13.29

v0.13.28

What's Changed

  • Fix pre-serialized class map (failed in some cases due to new data on property definition)

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.27...v0.13.28

v0.13.27

What's Changed

New Contributors

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.26...v0.13.27

v0.13.26

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.25...v0.13.26

v0.13.25

What's Changed

New Contributors

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.24...v0.13.25

v0.13.24

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.23...v0.13.24

v0.13.23

What's Changed

New Contributors

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.22...v0.13.23

v0.13.22

What's Changed

Security: addresses a potential code execution issue under specific conditions.

New Contributors

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.21...v0.13.22

v0.13.21

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.20...v0.13.21

v0.13.20

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.19...v0.13.20

v0.13.19

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.18...v0.13.19

v0.13.18

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.17...v0.13.18

v0.13.17

What's Changed

New Contributors

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.16...v0.13.17

v0.13.16

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.15...v0.13.16

v0.13.15

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.14...v0.13.15

v0.13.14

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.13...v0.13.14

v0.13.13

What's Changed

New Contributors

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.12...v0.13.13

v0.13.12

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.11...v0.13.12

v0.13.11

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.10...v0.13.11

v0.13.10

What's Changed

New Contributors

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.9...v0.13.10

v0.13.9

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.8...v0.13.9

v0.13.8

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.7...v0.13.8

v0.13.7

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.6...v0.13.7

v0.13.6

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.5...v0.13.6

v0.13.5

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.4...v0.13.5

v0.13.4

What's Changed

New Contributors

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.3...v0.13.4

v0.13.3

🚨 Breaking changes

While unlikely this is going to affect you, RulesToParameter class has been removed. It was the internal not documented class, so it wasn't intended to be used on its own. Due to the low possibility of this affecting someone, I'm not tagging a new 0.14.x release.

What's Changed

New Contributors

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.2...v0.13.3

v0.13.2

What's Changed

  • Added support of variables used in validation rules by @chaikivskyi in https://github.com/dedoc/scramble/pull/1005
  • Fixed isInstanceOf could've returned null for template type.
  • Fixed infinite recursion for cases when [@mixin](https://github.com/mixin) of the class alias is used on the same class 😵‍💫

New Contributors

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.1...v0.13.2

v0.13.1

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.0...v0.13.1

v0.13.0

While this release has no breaking changes itself, the resulting OpenAPI document may be more accurate for your specific application, and hence may be considered as the one containing breaking changes. Due to this, I've decided to mark this release as 0.13.x. It means that you'll need to explicitly update the version in composer.json if you rely on ^0.12.0 or earlier versions.

Full type inference

Starting from Laravel 11.x (and especially from 12.x), Laravel comes with great and accurate PHPDoc annotations. With Scramble supporting these types, you'll enjoy focusing more on the app codebase rather than writing type annotations.

use App\Models\Appointment;

Route::get('/appointments', function (Request $request) {
    $items = Appointment::query()
        ->where('status', $request->string('status'))
        ->get();

    return $items;
});

In this case, Scramble can infer the type of $items: it is a collection of appointments, specifically: Illuminate\Database\Eloquent\Collection<int, App\Models\Appointment>!

This gives nice documentation just by analyzing the source, without any additional annotations.

Closure-based routes support

Previously, Scramble only supported controller-based routes. Now, the routes defined using closures also get their share of love and are documented automatically.

Closure-based routes support all the attributes (for manual parameters, headers, responses, etc.) that are supported by controller-based methods.

What's Changed

New Contributors

Full Changelog: https://github.com/dedoc/scramble/compare/v0.12.36...v0.13.0

v0.12.36

What's Changed

  • Added config for flattening query object parameters
  • Replace api path only if it appears at the beginning
  • Improve date_format rule documentation
  • Added enum names extension property support
  • Add support for wildcard array keys in validation rules

Full Changelog: https://github.com/dedoc/scramble/compare/v0.12.35...v0.12.36

v0.12.35

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.12.34...v0.12.35

v0.12.34

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.12.33...v0.12.34

v0.12.32

What's Changed

New Contributors

Full Changelog: https://github.com/dedoc/scramble/compare/v0.12.31...v0.12.32

v0.12.31

What's Changed

Full Changelog: https://github.com/dedoc/scramble/compare/v0.12.30...v0.12.31

v0.12.30

What's Changed

New Contributors

Full Changelog: https://github.com/dedoc/scramble/compare/v0.12.29...v0.12.30

v0.13.33
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.
bugban/php-sdk
littlerocket/job-queue-bundle
graham-campbell/flysystem
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
directorytree/opensearch-client
directorytree/opensearch-adapter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php