bambamboole/spectacular
Spectacular is a Laravel package by bambamboole that streamlines common development tasks with a clean, expressive API. Easy to install and configure, it helps teams build features faster while keeping the codebase tidy, readable, and easy to maintain.
bambamboole/spectacular is a Laravel/PHP package that extends dedoc/scramble to generate OpenAPI documentation from Laravel routes, controllers, and validation rules. It fits Laravel API services or monoliths already using Scramble, especially teams treating API contracts as build artifacts for client SDKs, contract tests, or gateway configuration. Version 0.30.0 remains a thin extension layer, so architectural coupling is mainly to Scramble rather than to application runtime code.dedoc/scramble ^0.13.48. Any Laravel service on an older Scramble minor must upgrade Scramble first. The removal of the package’s own InfoObject and the change to OneOf::setDiscriminator() accepting Scramble’s Discriminator are source-level breaking changes, so integration is not a drop-in Composer bump if teams used those APIs.0.x, and 0.30.0 demonstrates breaking changes in a minor release. The primary risks are:
InfoObject or discriminator mappings may fail at runtime or produce altered specs.flatten_deep_query_parameters behavior may change filter parameter schemas, which is useful but also a spec-level behavioral change.spectacular, and what Scramble versions are currently locked?InfoObject or call OneOf::setDiscriminator() directly?dedoc/scramble ^0.13.48 before upgrading spectacular. Services without Scramble should evaluate Scramble first; adding spectacular only for discriminator or info-object helpers may not justify the dependency churn.bambamboole/spectacular and their current dedoc/scramble constraints.dedoc/scramble to ^0.13.48 in a branch and resolve framework/PHP compatibility issues.spectacular to 0.30.0.InfoObject and OneOf::setDiscriminator() usage; refactor to Scramble’s Discriminator and remove reliance on the deleted InfoObject.^0.13.48, so Composer will block incompatible combinations. The API break is limited to discriminator construction and the removed InfoObject; teams not using those APIs may only need the Scramble bump. The new flatten_deep_query_parameters support should be treated as opt-in behavior driven by Scramble configuration and verified against existing filter schemas.spectacular upgrade → code refactor for removed/changed APIs → spec regeneration and diff review → CI contract validation → staged rollout. If multiple services share generated specs or client SDKs, upgrade documentation generation in one service first as a canary before broad rollout.dedoc/scramble and bambamboole/spectacular to compatible ranges, and add Dependabot/Renovate visibility for both. Because spectacular is 0.x, minor upgrades should be treated as potentially breaking and validated through generated-spec diffs.spectacular release lands.spectacular and the installed Scramble version.InfoObject references or changed discriminator method signatures.How can I help you explore Laravel packages today?