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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-form-components

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


Key features

This package is a focused adaptation of the excellent work by Protonemedia, simplified to only support Bootstrap 5 views.

Links


Installation

  1. Require the package via Composer:

  2. Publish config and assets:

This publishes:

  1. (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:

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:

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

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

PHP Build Version
Package Version
Requires php Version ^8.1 || ^8.2 || ^8.3 || ^8.4
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mlbrgn/laravel-form-components contains the following files

Loading the files please wait ...