Download the PHP package ilyasavich/form-builder without Composer

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

Laravel Form Builder

The form builder service for Laravel

Installation

Require

Register Provider and Facade

Publish config

Usage

To create new form first of all extending base Form class and overwrite method make. This method implements form building logic

Create inputs

The package provide to create all available html inputs. To add new input in your form class you need call add method of builder instance. It signature

To create simple input write ...

Customization

Attributes

Here are several methods to customize input

Labels

Group customization

By default inputs will generating in such format

If you don't need to wrap input by group

You can customize group attributes

Overwrite views

If you need specific input generating you can overwrite default view by your custom

In case where you need to overwrite view without group you can ...

When you need to overwrite only group you can ... In view you have $input object that is an instance of your input class.

Available input properties

The you can find list of available properties of $input object

Name Description
$name Input name
$value Input value
$attributes Input attributes
$label Input label in html
$view Path to input group view. Will be null if you don't set it in view() method
$defaultView Path to default group view. You can set it in config file
$groupAttributes Array of group attributes
$before Array of inputs that must be inserted inside group before current
$after Array of inputs that must be inserted inside group after current
$withoutGroup Can be set by call withoutGroup() method. Indicates that need generate input without wrapping group
$withoutGroupView Path to view inside group
$model Model that will be binding for input

Create simple form

For example you need to create simple login form with at least two inputs. Ok, it will something like that

After that you need to add this form in controller action

And, finally, render form in view file

Lets create action for submitting login form. In our controller


All versions of form-builder with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version ^5.3
laravelcollective/html Version ^5.4
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 ilyasavich/form-builder contains the following files

Loading the files please wait ....