Download the PHP package wisam-alhennawi/lara-forms-builder without Composer

On this page you can find all versions of the php package wisam-alhennawi/lara-forms-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 lara-forms-builder

lara-forms-builder package

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

About

The main functionality of this package is:

Requirements

The following dependencies are required to use the package:

Dependency Version
PHP 8.x
Laravel 10.x
Jetstream 4.x 💡
Livewire 3.x 💡
Alpine.js 3.x 💡
TailwindCSS 3.x 💡
Pikaday 1.x 💡
Moment 2.x 💡

💡 => You can install it with Auto Setup & Configuration.

Note that (pikaday & moment) npm packages is required only if you have a date field within your form.

Installation

Upgrade Guide

If you want to use the package in an existing project that use v1 the following changed are required.

all placed uses $this->property should be replaced with $this->formProperties['property']

Auto Setup & Configuration

This command will do the following:

Configuration

Publishing Assets

1) #### Config (Mandatory) You Must publish the config file and add it to the tailwind.config.js in order to apply the styles:

This is the contents of the published config file:

Update tailwind.config.js:

2) #### CSS (Mandatory) Publishing css file is Mandatory to apply styles.

That will make a new css file lara-forms-builder.css in the public/vendor/lara-forms-builder/css/ directory. After that you must import this file with your resources/css/app.css by adding:

And feel free to edit the default style in lara-forms-builder.css to fulfil your form requirements style.

3) #### Translation (optional)

4) #### Views (optional)

Using date in form (optional)

Like it mention in the Requirements section if your form has a date field you must install required dependencies by following these steps:

Use confirmation modal

In order to use the confirmation modal within your project you must include it globally in the default layout of your blade view where you want to use it. So you can add @livewire('modals.confirmation') to your views/layouts/app.blade.php inside the html <body> tag.

Usage

Create new Livewire from

By using this command you can create a new Livewire form depending on a model, additionally you can add [--langModelFileName=] tag to specify a lang file for model fields labels:

Examples:

Form Component Types and Attributes

Forms are specified in a declarative manner as an array of the fields function in the form component class.

beforeFormProperties(), afterFormProperties() functions used to set options, values, etc. before/after setting the form properties (e.g. developers options in the following example).

saveDevelopers() function used to make operation after create/update a model (e.g. developers ids & project id will be saved in pivot table in the following example).

Note: saveDevelopers()functions should follow the naming convention of the form field name developers.

The definition above is then rendered as displayed in this screenshot (with additional language dependent translations for the labels required):

All form components have the following general properties:

Type input

The input form field is a classic html input element. It has the following additional properties:

Type textarea

The textarea form field represents a text area and has the following additional properties:

Type select

The select form field is a select box for single selection. It has the following additional properties:

Type radio

The radio form field represents radio buttons and has the following additional properties:

Type cards

The cards form field is a special layout element used to select among different options by clicking on one of several cards with rich content and an icon. It has the following additional properties:

Type checkbox

The checkbox form field is a single checkbox and does not have any additional properties.

Type checkbox-group

The checkbox-group form field is a multi-select group of checkboxes. It has the following additional properties:

Type date-picker

The date-picker form field adds a Pikaday date picker. It does not have any additional properties.

Type file

The file form field represents a file input for a single file upload. It has the following additional properties:

Since binary files are usually not directly stored as properties of an Eloquent model, but must be processed separately, this type of form field will in most cases need additional file handling logic in the implementing form. The implementation follows the principles of Livewire file uploads (https://laravel-livewire.com/docs/2.x/file-uploads) and essentially provides the view part of file upload. It is suggested to add the file handling in one of the callback or override functions, e.g. the save... function of the property such as the following code snippet for a property attachment:

Type search-picker

The search-picker form field is an input field with search functionality which display the results as a list under the field. It has the following additional properties:

Note: getUserIdOptions(), getUserIdSearchPickerSelectedValueProperty() functions should follow the naming convention of the form field name user_id.

Type trix-editor

The trix-editor form field is a rich text editor which uses Trix under the hood. It has the general properties mentioned above excluding readOnly.

In order to use the trix-editor form field you have to add the following to your blade:

Please see the full documentation on the official Trix page .

Form Layout

Tabs

Multi-Step

Form Methods

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of lara-forms-builder with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^9.0
livewire/livewire Version ^3.0
spatie/laravel-package-tools Version ^1.13.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 wisam-alhennawi/lara-forms-builder contains the following files

Loading the files please wait ....