Download the PHP package mlbrgn/laravel-form-components without Composer
On this page you can find all versions of the php package mlbrgn/laravel-form-components. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mlbrgn/laravel-form-components
More information about mlbrgn/laravel-form-components
Files in mlbrgn/laravel-form-components
Package laravel-form-components
Short Description Blade components to rapidly build forms with Bootstrap 5.
License MIT
Homepage https://github.com/mlbrgn/laravel-form-components
Informations about the package laravel-form-components
MLBRGN Laravel Form Components
Reusable Blade components to build accessible Bootstrap 5 forms with ease.
Key features
- Bootstrap 5 form markup out-of-the-box
- Blade components for
input,select,textarea,checkbox,radio,label,group,button,submit formwrapper with configurable client- or server-side validation modes- Optional TinyMCE-based
<x-form-html-editor>component - Consistent error rendering and feedback helpers
- Data binding helpers with
@bind/@endbind - Publishable, self-contained JS/CSS assets and auto-loader
- Configurable tag prefix (default:
form→<x-form-input />)
This package is a focused adaptation of the excellent work by Protonemedia, simplified to only support Bootstrap 5 views.
Links
- Getting Started: docs/getting-started.md
- Components Reference: docs/components.md
- Validation: docs/validation.md
- HTML Editor: docs/html-editor.md
- Assets: docs/assets.md
- Configuration: docs/configuration.md
- reCAPTCHA v2: docs/recaptcha-v2.md
- Binding (
@bind): docs/binding.md
Installation
-
Require the package via Composer:
- Publish config and assets:
This publishes:
- Config:
config/form-components.php - Public assets:
public/vendor/mlbrgn/laravel-form-components/
- (Optional) Configure the tag prefix in
config/form-components.php:
With the default prefix, you’ll use components like <x-form-input />, <x-form-select />, etc.
Quick start
In your Blade view:
Validation assets are automatically injected when the form’s validationMode resolves to a client mode.
Validation modes
Set on <x-form-form> via the validationMode attribute, or globally via config('form-components.default-form-validation-mode').
Supported values:
server(default): uses pure server-side validation; disables native browser validationclient-default: enables browser validation and loads minimal client assetsclient-custom: disables native browser validation but loads the package’s client-side validation assets/classes
Example:
See docs/validation.md for details.
HTML editor (TinyMCE)
Use <x-form-html-editor> to render a WYSIWYG editor powered by TinyMCE. The component loads the necessary assets via the internal asset loader.
Global editor options can be set via form-components.html_editor_tinymce_global_config in the config file. See docs/html-editor.md.
Assets
The package includes an asset loader published to public/vendor/mlbrgn/laravel-form-components. By default, forms/components pull in what they need. You can also include assets manually:
See docs/assets.md for more options.
Data binding with @bind
Bind a model/array to nested inputs without repeating value for each control:
Use old() data and defaults seamlessly. See docs/binding.md for details.
reCAPTCHA v2
The <x-form-recaptcha-v2 /> component renders v2 widgets. Configure keys under form-components.recaptcha.*. See docs/recaptcha-v2.md.
Configuration
Open config/form-components.php to adjust:
framework(Bootstrap 5 supported)tag_prefix- Validation and wrapper-class behavior
- HTML editor global config and content CSS
- reCAPTCHA settings
See docs/configuration.md for the full list.
Upgrading from protonemedia/laravel-form-components
This package is a streamlined fork focused on Bootstrap 5. Some options and views were removed or renamed. See docs/upgrade.md for guidance.
Credits
- Based on: https://github.com/protonemedia/laravel-form-components
- Authors: Evertjan Garretsen, Nick D.
License
The MIT License (MIT). Please see License File for more information.
Treeware
This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work.
All versions of laravel-form-components with dependencies
barryvdh/laravel-ide-helper Version ^3.0.0
illuminate/support Version ^9 || ^10 || ^11 || ^12 || ^13
symfony/http-foundation Version ^6.0 || ^7.0 || ^8.0