Download the PHP package mrclln/wire-form-builder without Composer

On this page you can find all versions of the php package mrclln/wire-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 wire-form-builder

Livewire Form Builder

A standalone, open-source Laravel Livewire package that provides a dynamic, drag-and-drop Form Builder. It lets you visually compose forms, exports the result as form schema JSON, and renders saved schemas as functional forms.

Inspired by the schema layout and field options of jQuery FormBuilder — but built natively with Livewire 4 + Alpine.js. No jQuery, no FormBuilder JS is used.

Features

Demo

See the form builder in action:

Livewire Form Builder Demo

▶️ Watch the demo on YouTube

Requirements

Tailwind CSS setup

This package ships its styles as Tailwind utility classes through its Blade views and config/wire-form-builder.php. You must make sure your app's Tailwind build scans those files, otherwise classes (e.g. the builder's grid-cols-[16rem_1fr]) are never generated and the palette/canvas will appear unstyled and stacked.

Tailwind v4

Tailwind v4 does not scan vendor/ automatically. Add the package's views (and optionally its config) as a source in your resources/css/app.css:

Then rebuild your assets and hard-refresh:

Tailwind v3

Include the package in your content globs in tailwind.config.js:

Installation

Publish the configuration and/or the views:

Usage

Editor (FormBuilder)

Drop the editor anywhere in a Blade view:

Add fields from the sidebar, reorder them by dragging the handle, edit each field in the drawer (label, name, placeholder, required, options, or a custom CSS class), duplicate a field, or remove it. The generated JSON is kept in sync with the canvas at all times.

You can also seed an existing schema:

Or pre-seed from a JSON schema string:

Binding the schema (#[Modelable])

The schema property is marked #[Modelable], so a parent component can bind to it with wire:model and keep it in two-way sync as fields are added, edited, reordered, duplicated, or removed:

Whenever the canvas changes, $formSchema on the parent updates automatically (no manual @input listener required). To react to changes server-side, emit a listener or read the property in any parent action.

You can also read or normalise the canvas from plain PHP via the component's helpers:

Renderer (FormRenderer)

Pass a schema (array or JSON string) to render a functional form:

The schemaFields property is marked #[Modelable], so you can also bind it two-way with wire:model. As users fill in the rendered fields, the value key is written into each schema entry, and the parent's bound property updates in real-time — no submit button required.

The rendered form fields bind to schemaFields.{index}.value, so every keystroke is reflected in the parent's $formSchema array. Each entry looks like:

Retrieve a clean name => value map at any time via $formRenderer->getAnswers().

Backend API (FormBuilder facade)

When you need to read, normalise, or persist schema JSON from plain PHP (e.g. saving a builder's canvas to the database), use the FormBuilder facade:

Customizing styles

Every class is defined in config/wire-form-builder.php under styles. For example, to restyle text inputs:

Views reference these via config('wire-form-builder.styles...'), so no Blade editing is required for restyling. The field_types key controls which field types appear in the palette.

Architecture

Class Responsibility
LivewireFormBuilderServiceProvider Registers components, views, publishes config, binds the facade.
Components\FormBuilder The editor: palette, sortable canvas, settings drawer, duplicate/remove, JSON schema.
Components\FormRenderer Renders a saved schema into a functional form using #[Modelable] two-way binding on schemaFields.
FieldDefinitions Source of truth for field types and their default schema.
FormBuilder (facade) / FormBuilderManager Backend API to read, normalise, and persist schema JSON from PHP.
config/wire-form-builder.php Publishable styles + enabled field types.
resources/views/fields/*.blade.php Per-control rendering partials.

License

MIT © mrclln


All versions of wire-form-builder with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
illuminate/support Version ^11.0 || ^12.0 || ^13.0
livewire/livewire Version ^4.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 mrclln/wire-form-builder contains the following files

Loading the files please wait ...