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

X Form Laravel Package

vkm-apps/x-form

vkm-apps/x-form is a Laravel package for defining and rendering dynamic forms from configurable schemas. It helps you build reusable fields, manage validation, and streamline form submission for admin panels and custom applications.

View on GitHub
Deep Wiki
Context7

x-form is a Laravel package for building and managing dynamic forms with a fluent, expressive API. Define fields, validation rules, and layouts in PHP, then render consistent, accessible markup without repeating boilerplate. It fits cleanly into existing Blade views and integrates with Laravel's validation and request lifecycle.

  • Fluent field definitions with built-in validation support
  • Reusable form components and Blade rendering
  • Automatic old-input handling and error display
  • Extensible field types for custom inputs
  • Framework-native configuration with sensible defaults
Frequently asked questions about X Form
How do I install vkm-apps/x-form in a Laravel application?
Install it with Composer using composer require vkm-apps/x-form, then follow the repository README for any required asset or config publishing. The package is a rendering and behaviour layer built on Blade, Livewire and AlpineJS, so those must already be present in your app. Because the v2 line is tied to a recent Laravel major, confirm the correct release line for your framework version before installing.
Which Laravel and Livewire versions does x-form support?
The v2.0.0 release states support for Laravel 13 and Livewire 3. The release note wording around Livewire 3 is ambiguous, so treat documented version constraints as something to verify with the maintainer before pinning a branch. If your application is on an older Laravel major, check whether an earlier tag covers it.
Is vkm-apps/x-form compatible with Livewire 3?
The v2 line is the one described as supporting Livewire 3, while the package notes also reference v1 in a way that reads as contradictory. That ambiguity affects which tag you pin and whether your upgrade path is supportable. Resolve it in writing with the maintainer before relying on it in a roadmap item.
How do I define a form schema with fields and validation rules in PHP?
Forms are defined in PHP as reusable schemas containing fields, validation rules and layout, then rendered through Blade components. A field is typically bound to a Livewire property or model attribute, so validation and error display are declared once rather than per feature. This keeps form logic centralized, testable and easier to maintain across form-heavy screens such as onboarding, surveys and admin data entry.
How do I render form fields in Blade with x-form components?
You compose forms from Blade components such as x-form.date and x-form.editor, driven by the bound Livewire property. Product and design specify the fields and behaviour while engineering composes the matching components. The result is consistent markup across your application without hand-writing each input, label and error block per feature.
Are x-form error messages escaped, and is there an XSS risk?
The v2.0.1 release notes state that error messages render via an unescaped output expression, which allows custom HTML and warns against passing unescaped user input. That means any dynamic error string reaching the component is a potential XSS vector. Enforce a written rule that error strings are static or escaped, add a review checklist item, and require security sign-off before customer-facing exposure.
How should I handle the date range field that returns an array?
The date range attribute returns an array of two dates to the backend, unlike the scalar value of the single-date component. That silent shape difference is a common source of downstream validation bugs. Enforce typed DTOs or explicit casts at the boundary so consumers always know whether they receive a scalar or a range.
Can I use multiple editors or file managers on one page with x-form?
The changelog shows repeated editor and file-manager fixes around ID conflicts and Livewire re-render behaviour across several releases. That history suggests the component class is harder to stabilize when several instances share a page. Test screens with two editors or dynamic arrays carefully and treat them as elevated defect risk in planning.
Do I need Livewire and AlpineJS knowledge to use x-form?
Yes. The package assumes a server-driven UI built on Laravel, Blade, Livewire and AlpineJS, and the components rely on Livewire reactivity. Teams without working Livewire and Alpine familiarity should budget for skills investment rather than treating adoption as zero cost. Surfaces built on Inertia with Vue or React, or offline-first interactions, are not a good fit.
Is vkm-apps/x-form production ready and actively maintained?
It is a single-vendor package with no stars or dependents, so there is no community to absorb upgrade work or surface regressions. Adopting it effectively means accepting first-party maintenance obligations for a third-party dependency. Treat it as pre-production until a pilot clears version pinning, security controls and the multi-instance component risks.
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.
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums