Download the PHP package balfour/laravel-form-builder without Composer

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

laravel-form-builder

A library for building & rendering forms in Laravel.

We originally developed this library for our internal systems which are based off of Bootstrap 4 and CoreUI. We've tried to not be too opinionated about markup; however the library does generate markup with Bootstrap 4 classes in mind.

If you're not using Bootstrap 4, or are using an older version, you'll need to add compatible CSS classes to handle the styling of components.

This library is in early release and is pending unit tests.

Table of Contents

Installation

Creating a Form

You can either create your form on the fly by constructing a Form, or you can create a custom class such as CreateUserForm which builds the components in the class constructor.

You can create the form object in your controller and pass it through to your view.

In your view, you can then call the render method on the form.

Filling a Form

The $form->fill() method can be used to set the default values for all form components.

This method can either take an array or key => value pairs, or a model.

As an example, here is an EditUserForm which populates from an existing user model.

When we construct the form, we just need to pass in a user model and all components will be populated from the model.

Form Validation

The library will automagically generate validation rules for you based on the nested components of the form. The $form->getValidationRules() method can be called to generate the rules.

The validation of the actual form data is left up to you.

Controller Validation

Form Request Validation

Components

The following components are bundled into this package:

You can also create your own custom components by implementing ComponentInterface, or FormControlInterface which extends ComponentInterface.

Checkbox (single)

Checkboxes (multiple)

DateInput

EmailInput

FieldSet

FileInput

HiddenInput

MobileNumberInput

NumberInput

PasswordInput

PhoneNumberInput

RadioButtonGroup

RichTextEditor

Row

Select

TextArea

TextInput

TimePicker

ToggleSwitch


All versions of laravel-form-builder with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.0
illuminate/database Version ^5.7|^6.0
illuminate/support Version ^5.7|^6.0
illuminate/validation Version ^5.7|^6.0
propaganistas/laravel-phone Version ^4.2
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 balfour/laravel-form-builder contains the following files

Loading the files please wait ....