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 Form Laravel Package

mcfedr/json-form

Symfony bundle/trait that lets controllers handle forms submitted as JSON. Use JsonControllerTrait to create and process JSON-backed forms, accepting payloads shaped like normal form fields, then validate and persist as usual.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Accelerating API-driven form integrations: Enables seamless submission of JSON payloads to Symfony forms, reducing manual validation/serialization effort for APIs consuming form data.
  • Roadmap for API-first products: Supports building hybrid web/API products where forms are used in both frontend (traditional) and backend (API) contexts.
  • Build vs. buy: Avoids reinventing JSON-to-form binding logic, saving dev time for teams already using Symfony.
  • Use cases:
    • Admin panels with API endpoints for form submissions (e.g., CMS, e-commerce).
    • Microservices where forms are shared between web and API layers.
    • Legacy Symfony apps needing JSON API endpoints without rewriting forms.

When to Consider This Package

  • Adopt if:

    • Your stack includes Symfony + PHP and you need to expose forms via JSON APIs.
    • You’re building internal tools or admin interfaces with API-driven workflows.
    • Your team lacks time/resources to build custom JSON-to-form binders.
    • You prioritize MIT-licensed, lightweight solutions over enterprise-grade alternatives.
  • Look elsewhere if:

    • You’re not using Symfony (package is Symfony-specific).
    • Your API payloads require complex nested structures beyond basic JSON-to-form mapping.
    • You need real-time validation (e.g., WebSocket-based) or file uploads (this package focuses on JSON).
    • Your team prefers modern frameworks (Laravel, Livewire) over Symfony’s form component.
    • You require active maintenance (last release was 2022; check for forks or alternatives).

How to Pitch It (Stakeholders)

For Executives: "This package lets us rapidly expose our Symfony forms as API endpoints, cutting dev time by automating JSON-to-form binding. It’s a lightweight, MIT-licensed solution that aligns with our API-first roadmap for [Product X], enabling seamless integrations with mobile/web apps without rewriting form logic. Low risk—minimal overhead, proven by 13+ adopters."

For Engineering: *"If we’re using Symfony forms and need JSON API endpoints, this package handles the boilerplate of binding JSON payloads to forms. It’s a drop-in helper for:

  • Admin APIs (e.g., /api/submit-order).
  • Hybrid workflows (e.g., forms used in both web and API contexts).
  • Legacy upgrades (add APIs to existing Symfony forms without refactoring).

Trade-offs:

  • Symfony-only (no Laravel/other framework support).
  • Last updated in 2022 (vet forks or alternatives if critical).
  • Focuses on JSON; file uploads/real-time validation need extra work.

Proposal: Pilot it for [Specific Feature] to validate fit before wider adoption."*

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.
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk