sunmediatv/json-request-bundle
A Symfony bundle for handling JSON HTTP requests, helping map JSON payloads to structured data and integrate request parsing more cleanly in controllers. Useful for APIs that need consistent, reusable JSON request handling.
#[MapRequestPayload] (6.3+) and #[MapQueryString] attributes, Laravel's Form Requests with toArray/DTO casting, or spatie/laravel-data. A 0-star bundle with 0 dependents offers little unique leverage over these; the PM decision is almost certainly "use framework primitives" or "extract the pattern, not the code."-bundle suffix signals a Symfony bundle, not a Laravel-first package. That mismatch matters for a roadmap built on Laravel — adopting it would add a Symfony-style integration layer into a Laravel app, which is friction worth avoiding unless you have a specific bridge need.Recommendation: Treat this as a reference/study item, not a dependency. Do not allocate roadmap budget to integrations around it.
Consider it only if all of the following hold:
-bundle naming strongly implies Symfony; a Laravel integration would be non-idiomatic at best).#[MapRequestPayload], the Serializer component, and the Validator component and found a concrete gap.Look elsewhere when:
spatie/laravel-data, or DTO casting. This bundle is not the right shape for a Laravel codebase.#[MapRequestPayload] already covers the common case; adding a third-party bundle reintroduces the problem it claims to solve.For executives (one paragraph): We evaluated sunmediatv/json-request-bundle, an MIT-licensed PHP library for converting JSON HTTP request bodies into typed, validated objects — a pattern that improves API reliability and reduces boilerplate in controllers. However, the package has zero community traction (0 stars, 0 dependents, 0 aggregate score) and appears to be maintained by a single organization. Its core capability is already addressed by first-party framework features (Symfony's MapRequestPayload, Laravel's Form Requests) and mature alternatives. Recommendation: do not adopt as a dependency. We can achieve the same outcome with framework primitives and, if needed, borrow the pattern rather than the code — avoiding an unmaintained third-party risk while still delivering typed, validated API contracts.
For engineering: This is a Symfony-style bundle, not a Laravel package; integrating it into a Laravel stack adds a non-idiomatic bridge. Given zero dependents and no upstream support signal, treat it as a reference implementation. The equivalent behavior is achievable with:
#[MapRequestPayload] + Validator constraints.spatie/laravel-data.Ask: No roadmap change. If a team wants typed request handling, allocate a small spike to compare framework built-ins against an in-house pattern; do not add this bundle to composer.json unless a follow-up review (license audit, code review, maintenance commitment) clears it.
How can I help you explore Laravel packages today?