Download the PHP package laravel-enso/forms without Composer

On this page you can find all versions of the php package laravel-enso/forms. 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 forms

Forms

Stable Downloads Issues Merge Requests

Description

Forms is the JSON-based form builder used across Laravel Enso backends.

The package loads form templates from JSON, builds create and edit payloads around Eloquent models, computes actions and meta configuration, validates template structure, and ships test traits for common create/edit/destroy flows.

It is a backend payload builder, not a standalone UI package. The canonical frontend companion is @enso-ui/forms, which renders the payloads produced by this package.

Installation

Install the package:

Optional publishes:

Features

Usage

Create or edit a form payload:

Template structure

The JSON template must include at least:

The root template may also include:

Each section must define:

Optional section attributes are:

Each field must define:

Minimal template example

Form service API

The LaravelEnso\Forms\Services\Form object is not just a loader. It is a fluent mutator for the template before create() or edit() finalizes the payload.

Common methods:

Field and section mutators:

Example:

Upgrading to 10.0.0

Use @enso-ui/forms 5.0.0 or newer for the separate checkbox and switch renderers. Existing input fields with content: checkbox now render native checkboxes without template changes. Use content: switch explicitly when a toggle switch is intended. Input content is now validated against Attributes\Meta::InputContent; unsupported values are rejected. Replace top-level type: password with type: input and content: password. Custom fields retain their metadata validation bypass.

Supported field types

The backend validator accepts these meta.type values:

The frontend companion @enso-ui/forms currently renders these combinations:

Important behavior:

Supported meta keys

The validator accepts the following optional meta keys:

Template validation rules

Validator runs four checks:

Notable enforced rules:

Enum-backed select fields may opt out of frontend label translation by setting "translated": false explicitly in the template.

Frontend companion

The canonical renderer is @enso-ui/forms.

Its public Vue components are:

The package integrates with companion UI packages such as:

EnsoForm also exposes runtime helpers to the host application, including:

API

Services

Published resources

Configuration highlights

Test traits

Depends On

Required Enso packages:

Companion frontend package:

Contributions

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!


All versions of forms with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
laravel-enso/enums Version ^3.0
laravel-enso/helpers 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 laravel-enso/forms contains the following files

Loading the files please wait ...