check24/apitk-deprecation-bundle
/v1/ to /v2/ endpoints.Adopt When:
/v1/, /v2/) and needs a standardized way to deprecate them.@Rest\Get) and Swagger/OpenAPI for documentation.Look Elsewhere If:
nelmio/api-doc-bundle or custom logic.api-platform/core for modern PHP stacks.*"This package streamlines our API deprecation process, reducing technical debt and support costs. By automatically flagging outdated endpoints in documentation and responses, we’ll:
/v3/), improving performance and features.*"This lightweight bundle solves a common pain point: manually tracking and communicating API deprecations. Here’s why it’s a win:
@Deprecated annotations to existing REST controllers—no middleware or docs updates needed.x-apitk-deprecated headers with migration paths (e.g., use /v3/users).since/removedAfter dates to align with roadmaps or regulatory deadlines.*"If you’re tired of:
/v1/ ‘still works’ but isn’t supported.
…this bundle does it all with one annotation:@Deprecated(since="2024-01-01", description="Use /v3/orders", hideFromDocs=true)
Pros:
✅ Works with existing @Rest\* annotations.
✅ Adds headers like x-apitk-deprecated: Use /v3/orders.
✅ Hides deprecated endpoints from Swagger with hideFromDocs.
✅ Optional removedAfter date for enforcement planning.
Cons:
⚠️ No runtime blocking (endpoints still respond).
⚠️ Last release was 2021 (but the pattern is solid).
Want to try it? composer require check24/apitk-deprecation-bundle—it’s a 10-minute setup."
How can I help you explore Laravel packages today?