Weave 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

Json Request Bundle Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Roadmap sizing for typed request handling: If the product roadmap includes stricter API contracts (typed DTOs, automatic validation, clean controller signatures), a package like this is a candidate for that workstream — but its near-zero adoption means it should be treated as a reference implementation or inspiration, not a dependency to plan around.
  • Build vs. buy decisions: The core capability (deserialize a JSON request body into a typed object, then validate it) is now largely solved by framework primitives — Symfony's #[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."
  • Framework-fit / stack decisions: The -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.
  • Risk register / dependency hygiene: 0 stars, 0 dependents, 0 score, and an internal-looking org name (Sun Media TV) indicate an unmaintained or internal-only artifact. This is a "do not depend on" signal for any production-facing roadmap item; useful only for pattern research.
  • Feature scoping for API ergonomics: If a PM is deciding whether to invest in request-validation ergonomics (better error messages, contract testing, OpenAPI consistency), this package is a useful strawman to compare against — but the decision will be driven by your framework's built-ins, not this bundle.

Recommendation: Treat this as a reference/study item, not a dependency. Do not allocate roadmap budget to integrations around it.

When to Consider This Package

Consider it only if all of the following hold:

  • You are building on Symfony, not Laravel (the -bundle naming strongly implies Symfony; a Laravel integration would be non-idiomatic at best).
  • You have a specific need to convert incoming JSON request bodies into typed objects with validation, and you have evaluated #[MapRequestPayload], the Serializer component, and the Validator component and found a concrete gap.
  • You are willing to vendor/fork the code, own maintenance, fix any issues, and pin the dependency — because 0 stars and 0 dependents means no upstream support and effectively no community safety net.
  • The package's license (MIT) satisfies your legal/OSS review, and a source-code audit confirms it matches the described behavior.
  • You are inside the originating organization (Sun Media TV) or explicitly coordinating with its authors.

Look elsewhere when:

  • You are on Laravel — prefer Form Requests, spatie/laravel-data, or DTO casting. This bundle is not the right shape for a Laravel codebase.
  • You are on modern Symfony (6.3+) — #[MapRequestPayload] already covers the common case; adding a third-party bundle reintroduces the problem it claims to solve.
  • You need long-term maintenance, security patching, or community support — zero traction means zero ecosystem; the PM should assume the dependency is abandonware until proven otherwise.
  • You want documented, versioned API contracts — prefer OpenAPI-first tooling or first-party framework features.

How to Pitch It (Stakeholders)

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:

  • Symfony 6.3+: #[MapRequestPayload] + Validator constraints.
  • Laravel: Form Requests, or DTO packages such as spatie/laravel-data.
  • Either: a small in-house base request/DTO class — trivially maintainable and fully under our control.

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.

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.
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel