PHPackages                             mlbrgn/laravel-form-components - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. mlbrgn/laravel-form-components

ActiveLibrary[Templating &amp; Views](/categories/templating)

mlbrgn/laravel-form-components
==============================

Blade components to rapidly build forms with Bootstrap 5.

1.0.121(1mo ago)15.0k↑153.6%[4 PRs](https://github.com/evertjanMlbrgn/laravel-form-components/pulls)MITBladePHP ^8.1 || ^8.2 || ^8.3 || ^8.4CI passing

Since Jun 8Pushed 6d agoCompare

[ Source](https://github.com/evertjanMlbrgn/laravel-form-components)[ Packagist](https://packagist.org/packages/mlbrgn/laravel-form-components)[ Docs](https://github.com/mlbrgn/laravel-form-components)[ RSS](/packages/mlbrgn-laravel-form-components/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (42)Versions (144)Used By (0)

**MLBRGN Laravel Form Components**
Reusable Blade components to build accessible Bootstrap 5 forms with ease.

---

### Key features

[](#key-features)

- Bootstrap 5 form markup out-of-the-box
- Blade components for `input`, `select`, `textarea`, `checkbox`, `radio`, `label`, `group`, `button`, `submit`
- `form` wrapper with configurable client- or server-side validation modes
- Optional TinyMCE-based `` 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` → ``)

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
------------

[](#installation)

1. Require the package via Composer:

```
composer require mlbrgn/laravel-form-components
```

2. Publish config and assets:

```
php artisan vendor:publish --tag=mlbrgn-form-components-config
php artisan vendor:publish --tag=mlbrgn-form-components-assets
```

This publishes:

- Config: `config/form-components.php`
- Public assets: `public/vendor/mlbrgn/laravel-form-components/`

3. (Optional) Configure the tag prefix in `config/form-components.php`:

```
'tag_prefix' => env('FORM_COMPONENTS_TAG_PREFIX', 'form'),
```

With the default prefix, you’ll use components like ``, ``, etc.

Quick start
-----------

[](#quick-start)

In your Blade view:

```

        Title

        Content

    Publish immediately

    Save

```

Validation assets are automatically injected when the form’s `validationMode` resolves to a client mode.

Validation modes
----------------

[](#validation-modes)

Set on `` 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 validation
- `client-default`: enables browser validation and loads minimal client assets
- `client-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)
---------------------

[](#html-editor-tinymce)

Use `` 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
------

[](#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
-----------------------

[](#data-binding-with-bind)

Bind a model/array to nested inputs without repeating `value` for each control:

```
@bind($post)

@endbind
```

Use `old()` data and defaults seamlessly. See docs/binding.md for details.

reCAPTCHA v2
------------

[](#recaptcha-v2)

The `` component renders v2 widgets. Configure keys under `form-components.recaptcha.*`. See docs/recaptcha-v2.md.

Configuration
-------------

[](#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
---------------------------------------------------

[](#upgrading-from-protonemedialaravel-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
-------

[](#credits)

- Based on:
- Authors: [Evertjan Garretsen, Nick D.](https://github.com/MLBRGN)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Treeware
--------

[](#treeware)

This package is [Treeware](https://treeware.earth). If you use it in production, then we ask that you [buy the world a tree](https://plant.treeware.earth/pascalbaljetmedia/laravel-form-components) to thank us for our work.

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance94

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 88.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~6 days

Recently: every ~11 days

Total

122

Last Release

59d ago

PHP version history (3 changes)1.0.0PHP ^8.1 || ^8.2

1.0.108PHP ^8.1 || ^8.2 || ^8.3

1.0.121PHP ^8.1 || ^8.2 || ^8.3 || ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/95758172?v=4)[Evertjan](/maintainers/evertjanMlbrgn)[@evertjanMlbrgn](https://github.com/evertjanMlbrgn)

---

Top Contributors

[![evertjanMlbrgn](https://avatars.githubusercontent.com/u/95758172?v=4)](https://github.com/evertjanMlbrgn "evertjanMlbrgn (356 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (17 commits)")[![Nick-mlbrgn](https://avatars.githubusercontent.com/u/132455110?v=4)](https://github.com/Nick-mlbrgn "Nick-mlbrgn (17 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (14 commits)")

---

Tags

laravelformFormsform-builderbootstrap5bootstrap-5laravel-form-builderlaravel-form-componentsform-componentsMlbrgn

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mlbrgn-laravel-form-components/health.svg)

```
[![Health](https://phpackages.com/badges/mlbrgn-laravel-form-components/health.svg)](https://phpackages.com/packages/mlbrgn-laravel-form-components)
```

###  Alternatives

[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[ublabs/blade-simple-icons

A package to easily make use of Simple Icons in your Laravel Blade views.

1963.4k](/packages/ublabs-blade-simple-icons)[technikermathe/blade-lucide-icons

A package to easily make use of Lucide icons in your Laravel Blade views.

18421.4k11](/packages/technikermathe-blade-lucide-icons)[webup/laravel-form

A Laravel package to help build forms.

147.5k1](/packages/webup-laravel-form)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
