Download the PHP package tranquil-tools/laravel-vue-form-builder without Composer

On this page you can find all versions of the php package tranquil-tools/laravel-vue-form-builder. 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-vue-form-builder

A VueJS/Inertia FormBuilder package for Laravel

Define Laravel-VueJS forms configurations in PHP.

Documentation

Full documentation is available at docs.comfycoders.nl.

Topics covered:

Required fields

The label of every field whose rules contain required gets an asterisk, with a hidden "(required)" for screen readers. It is on by default; switch it off app-wide with 'required_indicator' => false in config/form-builder.php, and override a single field with ->markRequired() or ->markRequired(false). See Common options.

Field ids and reserved names

Field ids carry the form id: email in a form with ->id('login') renders id="login-email", so two forms with the same field on one page keep their labels apart. Field names that Inertia's useForm() uses itself (data, errors, reset, query, transform, ...) are refused when the form is serialized. See Vue Usage.

Conditions that validate

->if('action', 'rebook') shows a field only while action is rebook, adds exclude_unless:action,rebook to its rules and leaves it out of the payload while it is hidden, in sections, steps and repeater rows too. A submit button takes ->labelExpression() and ->disabledIf() to follow the form, such as `Rebook (${ids.length})`, and $processing tells an expression that the form is submitting. A validation error of a hidden field is shown at the top of the form after the field label. See Conditional visibility and Buttons.

Two forms with the same fields

$form->errorBag('newsletter') keeps the validation errors of a form in their own bag, on the server and in $page.props.errors, so the errors of two forms with the same field names on one page stay apart. See Two forms with the same fields.

Your own input, the package's label

An #input-{name} slot on <Form> replaces only the control of a field, and #input-{type} that of every field of a type. The label, required asterisk, help text, error and ids stay the package's, and the slot gets id, describedby, modelValue, update, invalid, disabled, field and form, also inside sections, steps and repeater rows. See Replacing only the input.

CrudBuilder

Want a complete CRUD solution? Our CrudBuilder builds on top of this FormBuilder and the TableBuilder to give you full create, read, update, and delete flows without repetitive boilerplate.

Installing the CrudBuilder pulls in this package automatically as a Composer dependency.


Quick start

Installation

You can install the package via composer:

This is the Vue renderer; it depends on tranquil-tools/laravel-form-builder, the PHP core that defines the fields, validation and schema. One require pulls in both.

Install the frontend dependencies. The package ships raw .vue files that your application compiles, so their imports resolve against your node_modules. Beyond what the Laravel Vue starter kit already gives you:

A WYSIWYG editor is opt-in. The package imports no editor, so nothing is needed here unless you register one.

Optional: you may publish the config file with:

This creates config/form-builder.php, which ships with the PHP core.

Alter you vite.config.ts to add an @form-builder alias:

Basic usage

A field takes classes in two places: ->wrapperClass() (or the older ->class()) replaces the classes of the wrapper around label, control and errors, and ->inputClass() adds classes to the input, select, checkbox or button itself. See Common options.

Click and other event handlers are attached in Vue, never from PHP (->attributes(['@click' => ...]) throws). Pass them through fieldOverrides, and they land on the button or input itself:

A Button with ->emit('preview') in the form class fires @button on <Form> instead, so the wiring stays visible in PHP:

See Click and other event handlers.


All versions of laravel-vue-form-builder with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/console Version ^11.0||^12.0||^13.0
illuminate/support Version ^11.0||^12.0||^13.0
tranquil-tools/laravel-form-builder Version ^1.24
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 tranquil-tools/laravel-vue-form-builder contains the following files

Loading the files please wait ...