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

vmphobos/x-form

x-form is a Laravel/PHP package for defining and rendering forms with a clean, reusable API. It helps organize fields, handle validation and form state, and keep form logic maintainable across Blade views and application code.

View on GitHub
Deep Wiki
Context7

x-form is a lightweight form-building package for Laravel that lets you define forms in PHP and render them consistently across your application. It focuses on clean, declarative configuration so field definitions, validation rules, and view markup stay in sync instead of being duplicated across controllers and Blade templates.

  • Declarative fields — define text, select, checkbox, and textarea inputs in one place
  • Model binding — prefill values from Eloquent models or old request input
  • Validation integration — reuse Laravel rules to surface errors and field states
  • Blade rendering — output accessible markup with consistent structure and styling hooks
  • Extensible — add custom field types and macros to fit your project
Frequently asked questions about X Form
How do I install vmphobos/x-form in a Laravel application?
Install it with Composer by running composer require vmphobos/x-form in your Laravel project. After installation, check the repository README for any required service provider registration, configuration publishing, or view publishing steps. Laravel package auto-discovery may handle provider registration automatically, but confirm this in the package documentation.
Does vmphobos/x-form work with Livewire?
Yes. vmphobos/x-form is described as one-line form Blade components for Laravel and Livewire, so it is intended to fit Livewire form workflows. You can use its Blade components inside Livewire views to keep form markup short and reusable. Check the README for exact component names and any Livewire-specific requirements.
Which Laravel versions are supported by vmphobos/x-form?
The provided context does not list supported Laravel versions, so verify the composer.json constraints and README before installing. Check that the package's Illuminate dependencies match your Laravel version, especially before major framework upgrades. If the constraints are missing or outdated, test in a staging branch first.
How do I render a form with vmphobos/x-form using one line?
The package lets you render form structure through reusable Blade components rather than repeating long form markup. The exact one-line syntax depends on the component names documented in the README. Start with a simple form, confirm the rendered fields and attributes, then expand to your full workflow.
Can I customize the form markup and styling in vmphobos/x-form?
Blade component packages commonly allow customization by publishing views or overriding component templates, but the available options depend on this package's implementation. Review the README for publish tags, config files, or documented component attributes. If no customization hooks are provided, you can still wrap or extend the components in your own Blade files.
How do I handle validation and error messages with vmphobos/x-form?
The package manages form rendering, while validation should still be handled by Laravel request validation or Livewire validation rules in your application. Use Blade error directives or Livewire's error bag to display messages next to the rendered fields. Keep server-side validation authoritative even if you add client-side checks.
How should I test forms built with vmphobos/x-form?
Test forms like any Laravel Blade or Livewire feature, using HTTP tests or Livewire component tests to assert that fields render and submit correctly. Assert important labels, input names, and validation error output rather than exact HTML where possible. If the package provides its own test helpers, follow the README for those APIs.
Is vmphobos/x-form suitable for production Laravel applications?
It can be suitable for production if the repository is actively maintained and its dependencies match your Laravel version. Review the license, release history, and open issues before adopting it. Always keep validation, authorization, and CSRF protection in your application code rather than relying on form markup alone.
What are alternatives to vmphobos/x-form for Laravel forms?
Alternatives include writing your own Blade form components, using Livewire form objects for state and validation, or adopting broader form builders such as Filament forms for admin panels. Laravel Collective HTML is an older option and may not fit modern Livewire workflows. Choose based on whether you need lightweight Blade markup or a full form or UI framework.
How actively maintained is vmphobos/x-form?
Check the GitHub repository for recent commits, tagged releases, open issues, and compatibility updates before relying on it. A small package can still be stable, but confirm it supports your current Laravel and Livewire versions. If maintenance is slow, plan to fork or replace it with local Blade components.
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.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource