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

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

Build Status Coverage Status Total Downloads Latest Stable Version

Laravel 5 form builder

Join the chat at https://gitter.im/kristijanhusak/laravel-form-builder

Form builder for Laravel 5 inspired by Symfony's form builder. With help of Laravels FormBuilder class creates forms that can be easy modified and reused. By default it supports Bootstrap 3.

Laravel 4

For Laravel 4 version check laravel4-form-builder.

Bootstrap 4 support

To use bootstrap 4 instead of bootstrap 3, install laravel-form-builder-bs4.

Upgrade to 1.6

If you upgraded to >1.6.* from 1.5.* or earlier, and having problems with form value binding, rename default_value to value.

More info in changelog.

Documentation

For detailed documentation refer to https://kristijanhusak.github.io/laravel-form-builder/.

Changelog

Changelog can be found here.

Installation

Using Composer

Or manually by modifying composer.json file:

And run composer install

Then add Service provider to config/app.php

And Facade (also in config/app.php)

Notice: This package will add laravelcollective/html package and load aliases (Form, Html) if they do not exist in the IoC container.

Quick start

Creating form classes is easy. With a simple artisan command:

Form is created in path app/Forms/SongForm.php with content:

If you want to instantiate empty form without any fields, just skip passing --fields parameter:

Gives:

After that instantiate the class in the controller and pass it to view:

Alternative example:

If you want to store a model after a form submit considerating all fields are model properties:

You can only save properties you need:

Or you can update any model after form submit:

Create the routes

Print the form in view with form() helper function:

Go to /songs/create; above code will generate this html:

Or you can generate forms easier by using simple array

Contributing

Project follows PSR-2 standard and it's covered with PHPUnit tests. Pull requests should include tests and pass Travis CI build.

To run tests first install dependencies with composer install.

After that tests can be run with vendor/bin/phpunit


All versions of laravel-form-builder with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
laravelcollective/html Version ^6
illuminate/database Version ^6 || ^7 || ^8 || ^9 || ^10
illuminate/validation Version ^6 || ^7 || ^8 || ^9 || ^10
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 zaartix/laravel-form-builder contains the following files

Loading the files please wait ....